Both Key and the DefaultValue are user specified properties.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getDiscriminatingValue(ILoggingEvent event)
Implements ch. |
| public String | getKey()
Implements ch. |
| public void | setDefaultValue(String defaultValue)
The default context name in case the context name is not set for the current logging event. |
| public void |
| defaultValue | back to summary |
|---|---|
| private String defaultValue | |
| KEY | back to summary |
|---|---|
| private static final String KEY | |
| ContextBasedDiscriminator | back to summary |
|---|---|
| public ContextBasedDiscriminator() | |
| getDefaultValue | back to summary |
|---|---|
public String getDefaultValue()
| |
| getDiscriminatingValue | back to summary |
|---|---|
| public String getDiscriminatingValue(ILoggingEvent event) Implements ch. Return the name of the current context name as found in the logging event. | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements ch. Doc from ch. The key or variable name under which the discriminating value should be exported into the host environment. | |
| setDefaultValue | back to summary |
|---|---|
| public void setDefaultValue(String defaultValue) The default context name in case the context name is not set for the current logging event. | |
| setKey | back to summary |
|---|---|
| public void setKey(String key) | |