Package io.clogr.logback
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
ContextSelectormechanism for logging separation. See LOGBACK-1196 to track whether it will be reinstated in the future.
-
Field Summary
Fields inherited from interface io.clogr.LoggingConcern
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionLoggerContextDecoratorLoggingConcern(ch.qos.logback.classic.LoggerContext loggerContext) Logger context constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.clogr.logback.LoggerContextLoggingConcern
getLoggerFactory, getRootLogger, setLogLevelMethods inherited from interface io.clogr.LoggingConcern
getConcernType, getLogger, setLogLevel
-
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:
getLoggerContextin interfaceLoggerContextLoggingConcern- Returns:
- The Logback logger context this logging concern is associated with.
-