Affects Version/s: 1.5.x
Fix Version/s: None
Operating System: All
I'd like to
- have a way to enumerate all SLF4J loggers configured, and
- get an event whenever any SLF4J logger has its configuration changed.
I could improve SLF4JBridgeHandler with that.
I have a situation where I need to set j.u.l. logging to ALL for some loggers to get the information I want, and WARN for other loggers to keep performance to acceptable levels.
Currently, I'm forced to configure both slf4j and j.u.l. This is error-prone because I have to keep redundant logging configurations, and because the logging levels do not map 1:1.
With the enumeration, I could initialize a j.u.l. logger for every configured slf4j logger, at a compatible logging level.
With the events, I could keep the j.u.l. configuration in sync with the slf4j configuration.
HELPING WITH THE WORK
I can contribute the code, but I can't decide where in SLF4J's architecture it should go.