Skip to content

Improve LoggerConfig Type Safety and Flexibility

The idea here under the configuration loader file is to enhance the LoggerConfig and HandlerConfig Pydantic models to improve type validation, support sink-specific field requirements (like for Elasticsearch), and add stricter typing for sink values. for example catch misconfigurations once we have eliminated global sinks and also extend the logger to support more outputs later on.

Another example is pydantic has a customer types like we can max_size instead of str in some cases enforcing stricter types

Edited by Aldridge Abaasa