Package ch.qos.logback.classic
Class PatternLayout
- All Implemented Interfaces:
Layout<ILoggingEvent>
,ContextAware
,LifeCycle
A flexible layout configurable with pattern string. The goal of this class is
to
a invalid @link
format
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
-
Field Summary
Modifier and TypeFieldDescriptionDeprecated.replaced by DEFAULT_CONVERTER_MAPstatic final String
Fields inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
outputPatternAsHeader, postCompileProcessor
Fields inherited from class ch.qos.logback.core.LayoutBase
started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setContextForConverters, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, start, toString, writeLoopOnConverters
Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
-
Field Details
-
DEFAULT_CONVERTER_MAP
-
CONVERTER_CLASS_TO_KEY_MAP
-
defaultConverterMap
Deprecated.replaced by DEFAULT_CONVERTER_MAP -
HEADER_PREFIX
- See Also:
-
-
Constructor Details
-
PatternLayout
public PatternLayout()
-
-
Method Details
-
getDefaultConverterMap
- Specified by:
getDefaultConverterMap
in classPatternLayoutBase<ILoggingEvent>
-
doLayout
-
getPresentationHeaderPrefix
- Overrides:
getPresentationHeaderPrefix
in classPatternLayoutBase<ILoggingEvent>
-