ProtixIT / dataclass-binder

Python library to bind TOML data to dataclasses in a type-safe way
MIT License
13 stars 2 forks source link

Include dataclasses for logging configuration #30

Open mthuurne opened 1 year ago

mthuurne commented 1 year ago

The logging framework can be configured via a dictionary-based data structure. We currently support this via the Any annotation, but while that allows logging to be configured from the same TOML file, it doesn't detect any configuration errors.

I'm not certain whether this should be in the base library or a separate package, but as the logging framework is in the standard library and widely used, I'm leaning towards including it in the base library.