java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.jul.LevelChangePropagator
- All Implemented Interfaces:
LoggerContextListener
,ContextAware
,LifeCycle
public class LevelChangePropagator
extends ContextAwareBase
implements LoggerContextListener, LifeCycle
Propagate level changes made to a logback logger into the equivalent logger
in j.u.l.
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Some listeners should not be removed when the LoggerContext is reset.boolean
void
onLevelChange
(Logger logger, Level level) void
onReset
(LoggerContext context) void
onStart
(LoggerContext context) void
onStop
(LoggerContext context) void
void
setResetJUL
(boolean resetJUL) void
start()
void
stop()
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
LevelChangePropagator
public LevelChangePropagator()
-
-
Method Details
-
setResetJUL
-
isResetResistant
Description copied from interface:LoggerContextListener
Some listeners should not be removed when the LoggerContext is reset. Such listeners are said to be reset resistant.- Specified by:
isResetResistant
in interfaceLoggerContextListener
- Returns:
- whether this listener is reset resistant or not.
-
onStart
- Specified by:
onStart
in interfaceLoggerContextListener
-
onReset
- Specified by:
onReset
in interfaceLoggerContextListener
-
onStop
- Specified by:
onStop
in interfaceLoggerContextListener
-
onLevelChange
- Specified by:
onLevelChange
in interfaceLoggerContextListener
-
resetJULLevels
-
start
-
stop
-
isStarted
-