If I were to make one significant change to the logger plugin system, I think it might be better to replace LogHandlerBase with a class that is not itself a log hander but creates one from a factory method. The constructor and properties would stay more or less the same.
- Currently you cannot inherit from builtin handler classes like
StreamHandler or FileHandler due to how LogHandlerBase's constructor works. You could get around this, probably by requiring __post_init__() to call the appropriate handler's __init__() method instead, but it's all a bit messy with the multiple/diamond inheritance.
- Many usages probably don't even need a custom
Handler subclass, and could just use a builtin one with a custom formatter.
- It would be easier to change behavior according to config. The issue I'm running into is logging to stderr vs a file.
This could be made backwards compatible with the old method by having an implementation of the new class that just wraps the old LogHandlerBase instance.
Originally posted by @jlumpe in #37
TODO:
Originally posted by @jlumpe in #37
TODO: