当前页面:
在线文档首页 >
JBoss 3.2.7 common API Documentation 英文版文档
PatternLayout (JBoss/Common API) - JBoss 3.2.7 common API Documentation 英文版文档
org.jboss.logging.layout
Class PatternLayout
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.PatternLayout
org.jboss.logging.layout.PatternLayout
- All Implemented Interfaces:
- org.apache.log4j.spi.OptionHandler
- public class PatternLayout
- extends org.apache.log4j.PatternLayout
A subclass of the log4j PatternLayout that add the following conversion
characters:
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.
|
- Version:
- $Revision: 1.1.4.1 $
- Author:
- Scott.Stark@jboss.org
Fields inherited from class org.apache.log4j.PatternLayout |
BUF_SIZE, DEFAULT_CONVERSION_PATTERN, MAX_CAPACITY, TTCC_CONVERSION_PATTERN |
Fields inherited from class org.apache.log4j.Layout |
LINE_SEP, LINE_SEP_LEN |
Methods inherited from class org.apache.log4j.PatternLayout |
activateOptions, format, getConversionPattern, ignoresThrowable, setConversionPattern |
Methods inherited from class org.apache.log4j.Layout |
getContentType, getFooter, getHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternLayout
public PatternLayout()
createPatternParser
protected org.apache.log4j.helpers.PatternParser createPatternParser(String pattern)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.