Open
Description
I'm considering adding a new feature providing the ability to serialize and deserialize for loggers, that allows users to load logging configs from external inputs (particularly from files) so that they can save the existing configs and/or modify configs dynamically from an external file.
The overall idea is, we depending serde
as an optional dependency, and then we derive/implement Serialize
& Deserialize
around all stuff (e.g. All formatters, sinks, and the Logger)
There are some unsolved issues:
- What is the best way to serialize trait object types? Should we implement it ourselves or just use
erased-serde
crate directly? (I have no experience with this crate) - How do we handle user-defined sinks and formatters?
- ...
So this is a discussion issue, anyone could leave your opinion or concern :)