public class PatternLayout extends PatternLayoutBase<ILoggingEvent>
A flexible layout configurable with pattern string. The goal of this class is
to format
a ILoggingEvent
and return the results in a
{#link String}. The format of the result depends on the
conversion pattern.
For more information about this layout, please refer to the online manual at http://logback.qos.ch/manual/layouts.html#PatternLayout
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
defaultConverterMap |
static java.lang.String |
HEADER_PREFIX |
Constructor and Description |
---|
PatternLayout() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doLayout(ILoggingEvent event)
Transform an event (of type Object) and return it as a String after
appropriate formatting.
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaultConverterMap()
Concrete implementations of this class are responsible for elaborating the
mapping between pattern words and converters.
|
getEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, start, toString
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
public static final java.util.Map<java.lang.String,java.lang.String> defaultConverterMap
public static final java.lang.String HEADER_PREFIX
public java.util.Map<java.lang.String,java.lang.String> getDefaultConverterMap()
PatternLayoutBase
getDefaultConverterMap
in class PatternLayoutBase<ILoggingEvent>
public java.lang.String doLayout(ILoggingEvent event)
Layout
Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.
event
- The event to formatCopyright © 2010 - 2020 Adobe. All Rights Reserved