Package ch.qos.logback.access
Class PatternLayout
- All Implemented Interfaces:
Layout<IAccessEvent>
,ContextAware
,LifeCycle
This class is a module-specific implementation of
PatternLayout
to allow http-specific patterns
to be used. The ch.qos.logback.access.PatternLayout
provides a
way to format the logging output that is just as easy and flexible as the
usual PatternLayout
.
- Author:
- Ceki Gülcü, Sébastien Pennec
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
static String
static String
static String
static 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
Modifier and TypeMethodDescriptiondoLayout(IAccessEvent event)
Returns the default converter map for this instance.protected String
void
start()
Methods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setContextForConverters, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, 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
-
defaultConverterMap
-
HEADER_PREFIX
- See Also:
- Constant Field Values
-
CLF_PATTERN
- See Also:
- Constant Field Values
-
CLF_PATTERN_NAME
- See Also:
- Constant Field Values
-
CLF_PATTERN_NAME_2
- See Also:
- Constant Field Values
-
COMBINED_PATTERN
- See Also:
- Constant Field Values
-
COMBINED_PATTERN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PatternLayout
public PatternLayout()
-
-
Method Details
-
getDefaultConverterMap
Returns the default converter map for this instance.- Specified by:
getDefaultConverterMap
in classPatternLayoutBase<IAccessEvent>
-
doLayout
-
start
public void start()- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classPatternLayoutBase<IAccessEvent>
-
getPresentationHeaderPrefix
- Overrides:
getPresentationHeaderPrefix
in classPatternLayoutBase<IAccessEvent>
-