Class MDCBasedDiscriminator

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.

Path characters (/ and \) are removed from the discriminating value so that it is safe to use in file names or similar path segments.

Author:
Ceki Gülcü