org.jboss.logging.layout
Class PatternLayout

java.lang.Object
  extended byorg.apache.log4j.PatternLayout
      extended byorg.jboss.logging.layout.PatternLayout

public class PatternLayout
extends org.apache.log4j.PatternLayout

A subclass of the log4j PatternLayout that add the following conversion characters:

See Also:
Serialized Form

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 Summary
PatternLayout()
           
 
Method Summary
protected  PatternParser createPatternParser(java.lang.String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternLayout

public PatternLayout()
Method Detail

createPatternParser

protected PatternParser createPatternParser(java.lang.String pattern)