public class JNDIBasedContextDiscriminator extends AbstractDiscriminator<ILoggingEvent>
Both Key and the DefaultValue are user specified properties.
Constructor and Description |
---|
JNDIBasedContextDiscriminator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultValue() |
java.lang.String |
getDiscriminatingValue(ILoggingEvent event)
Return the name of the current context name as found in the logging event.
|
java.lang.String |
getKey()
The key or variable name under which the discriminating value should be
exported into the host environment.
|
void |
setDefaultValue(java.lang.String defaultValue)
The default context name in case the context name is not set for the
current logging event.
|
void |
setKey(java.lang.String key) |
isStarted, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
public java.lang.String getDiscriminatingValue(ILoggingEvent event)
public java.lang.String getKey()
Discriminator
public void setKey(java.lang.String key)
public java.lang.String getDefaultValue()
setDefaultValue(String)
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- Copyright © 2010 - 2020 Adobe. All Rights Reserved