Package ch.qos.logback.classic.sift
Class ContextBasedDiscriminator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.sift.AbstractDiscriminator<ILoggingEvent>
ch.qos.logback.classic.sift.ContextBasedDiscriminator
- All Implemented Interfaces:
Discriminator<ILoggingEvent>
,ContextAware
,LifeCycle
@Deprecated(since="2022-01-27")
public class ContextBasedDiscriminator
extends AbstractDiscriminator<ILoggingEvent>
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
This discriminator returns the value context to which this event is attached
to. If the said value is null, then a default value is returned.
Both Key and the DefaultValue are user specified properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Return the name of the current context name as found in the logging event.getKey()
Deprecated.The key or variable name under which the discriminating value should be exported into the host environment.void
setDefaultValue
(String defaultValue) Deprecated.The default context name in case the context name is not set for the current logging event.void
Deprecated.Methods inherited from class ch.qos.logback.core.sift.AbstractDiscriminator
isStarted, start, stop
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Constructor Details
-
ContextBasedDiscriminator
public ContextBasedDiscriminator()Deprecated.
-
-
Method Details
-
getDiscriminatingValue
Deprecated.Return the name of the current context name as found in the logging event.- Parameters:
event
-- Returns:
-
getKey
Deprecated.Description copied from interface:Discriminator
The key or variable name under which the discriminating value should be exported into the host environment.- Returns:
-
setKey
Deprecated. -
getDefaultValue
Deprecated.- Returns:
- See Also:
-
setDefaultValue
Deprecated.The default context name in case the context name is not set for the current logging event.- Parameters:
defaultValue
-
-