Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gliffy Diagram
macroId6ad6c7d3-09ae-42ae-9f26-0027a20240d7
displayNamelogging-abstraction-class-diagram
namelogging-abstraction-class-diagram
pagePin23

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.

...