Class MDCBasedDiscriminator

java.lang.Object
All Implemented Interfaces:
Discriminator<ILoggingEvent>, ContextAware, LifeCycle

MDCBasedDiscriminator essentially returns the value mapped to an MDC key. If the said value is null, then a default value is returned.

Both Key and the DefaultValue are user specified properties.

Author:
Ceki Gülcü