Both Key and the DefaultValue are user specified properties.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private 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 | |
| public void | |
| public void | start()
Overrides ch. Implements ch. |
| defaultValue | back to summary |
|---|---|
| private String defaultValue | |
| key | back to summary |
|---|---|
| private String key | |
| MDCBasedDiscriminator | back to summary |
|---|---|
| public MDCBasedDiscriminator() | |
| getDefaultValue | back to summary |
|---|---|
public String getDefaultValue()
| |
| getDiscriminatingValue | back to summary |
|---|---|
| public String getDiscriminatingValue(ILoggingEvent event) Implements ch. Return the value associated with an MDC entry designated by the Key property. If that value is null, then return the value assigned to the DefaultValue property. | |
| 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 MDC value in case the MDC is not set for
For example, if | |
| setKey | back to summary |
|---|---|
| public void setKey(String key) | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch.
| |