Class LevelOverrideTurboFilter
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.turbo.TurboFilter
com.evolveum.midpoint.util.logging.LevelOverrideTurboFilter
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.LifeCycle
public class LevelOverrideTurboFilter
extends ch.qos.logback.classic.turbo.TurboFilter
Overrides logging level for given loggers, based on thread-specific configuration.
It is used to temporarily elevate logging levels when gathering logs for tracing purposes.
Other expected use is to allow task-specific logging.
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ch.qos.logback.core.spi.FilterReply
decide
(org.slf4j.Marker marker, ch.qos.logback.classic.Logger logger, ch.qos.logback.classic.Level level, String format, Object[] params, Throwable t) static boolean
isActive()
static void
overrideLogging
(LoggingLevelOverrideConfiguration configuration) Methods inherited from class ch.qos.logback.classic.turbo.TurboFilter
getName, isStarted, setName, start, stop
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
LevelOverrideTurboFilter
public LevelOverrideTurboFilter()
-
-
Method Details
-
decide
public ch.qos.logback.core.spi.FilterReply decide(org.slf4j.Marker marker, ch.qos.logback.classic.Logger logger, ch.qos.logback.classic.Level level, String format, Object[] params, Throwable t) - Specified by:
decide
in classch.qos.logback.classic.turbo.TurboFilter
-
isActive
public static boolean isActive() -
overrideLogging
-
cancelLoggingOverride
public static void cancelLoggingOverride()
-