Class LoggerContextDecoratorLoggingConcern

java.lang.Object
io.clogr.logback.LoggerContextDecoratorLoggingConcern
All Implemented Interfaces:
LoggerContextLoggingConcern, io.clogr.LoggingConcern, io.csar.Concern

public class LoggerContextDecoratorLoggingConcern extends Object implements LoggerContextLoggingConcern
A concern for logging configurations wrapping an existing Logback LoggerContext.
Author:
Garret Wilson
API Note:
As of Logback 1.3.0-alpha4 Logback no longer supports the ContextSelector mechanism for logging separation. See LOGBACK-1196 to track whether it will be reinstated in the future.
  • Constructor Details

    • LoggerContextDecoratorLoggingConcern

      public LoggerContextDecoratorLoggingConcern(@Nonnull ch.qos.logback.classic.LoggerContext loggerContext)
      Logger context constructor.
      Parameters:
      loggerContext - The Logback logger context this logging concern decorates.
  • Method Details

    • getLoggerContext

      public ch.qos.logback.classic.LoggerContext getLoggerContext()
      Specified by:
      getLoggerContext in interface LoggerContextLoggingConcern
      Returns:
      The Logback logger context this logging concern is associated with.