public class PatternParserEx
extends org.apache.log4j.helpers.PatternParser
Conversion Character | Effect |
---|---|
z | Used to output current thread NDC value. This can be used to obtain an NDC to augment any NDC associated with the LoggingEvent. This might be necessary if the LoggingEvent has been serialized between VMs. |
Z | Used to output current thread MDC value. This can be used to obtain an MDC to augment any MDC associated with the LoggingEvent. This might be necessary if the LoggingEvent has been serialized between VMs. The Z conversion character must be followed by the key for the map placed between braces, as in %Z{theKey} where theKey is the key. The value in the MDC corresponding to the key will be output. |
Constructor and Description |
---|
PatternParserEx(String pattern)
Creates a new instance of PatternParser
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalizeConverter(char c) |
public PatternParserEx(String pattern)
pattern
- the pataternCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.