...
As illustrated by the class diagram above, the interface LogginerProvider
is introduced where the setLogLevel()
method varies among different logging implementations. The isEnabled()
method is invoked during the initialization. All the LoggingProvider
implementation classes, that are registered using the Java service loading facility, are tested and only the first enabled one will be used. Any subclass of the Slf4jLoggingProvider
is considered to be enabled as long as the factory name returned from StaticLoggerBinder.getLoggerFactoryClassStr()
is the same as the one of its logging implementation factory.
Supported Log Levels
Level / Implementation | Log4j | Logback | Java Logging |
---|---|---|---|
TRACE | TRACE | ||
| DEBUG | ||
INFO | INFO | ||
WARN | WARN | ||
ERROR | ERROR | ||
SEVERE | ERROR | ||
OFF | OFF |
Limitations
TBD
Compatibility, Deprecation, and Migration Plan
...