Class Slf4JLoggingSystem

Direct Known Subclasses:
Log4J2LoggingSystem, LogbackLoggingSystem

public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem
Abstract base class for LoggingSystem implementations that utilize SLF4J.
Since:
1.2.0
Author:
Andy Wilkinson
  • Constructor Details

    • Slf4JLoggingSystem

      public Slf4JLoggingSystem(ClassLoader classLoader)
  • Method Details

    • beforeInitialize

      public void beforeInitialize()
      Description copied from class: LoggingSystem
      Reset the logging system to be limit output. This method may be called before LoggingSystem.initialize(LoggingInitializationContext, String, LogFile) to reduce logging noise until the system has been fully initialized.
      Overrides:
      beforeInitialize in class AbstractLoggingSystem
    • cleanUp

      public void cleanUp()
      Description copied from class: LoggingSystem
      Clean up the logging system. The default implementation does nothing. Subclasses should override this method to perform any logging system-specific cleanup.
      Overrides:
      cleanUp in class LoggingSystem
    • loadConfiguration

      protected void loadConfiguration(LoggingInitializationContext initializationContext, String location, LogFile logFile)
      Description copied from class: AbstractLoggingSystem
      Load a specific configuration.
      Specified by:
      loadConfiguration in class AbstractLoggingSystem
      Parameters:
      initializationContext - the logging initialization context
      location - the location of the configuration to load (never null)
      logFile - the file to load or null if no log file is to be written
    • isBridgeJulIntoSlf4j

      protected final boolean isBridgeJulIntoSlf4j()
      Return whether bridging JUL into SLF4J or not.
      Returns:
      whether bridging JUL into SLF4J or not
      Since:
      2.0.4
    • isBridgeHandlerAvailable

      protected final boolean isBridgeHandlerAvailable()