java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<IAccessEvent>
ch.qos.logback.core.pattern.PatternLayoutBase<IAccessEvent>
ch.qos.logback.access.common.PatternLayout
- All Implemented Interfaces:
ch.qos.logback.core.Layout<IAccessEvent>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.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 final String
static final String
static final String
static final String
static final String
static 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
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
-
Field Details
-
ACCESS_DEFAULT_CONVERTER_SUPPLIER_MAP
public static final Map<String,Supplier<ch.qos.logback.core.pattern.DynamicConverter>> ACCESS_DEFAULT_CONVERTER_SUPPLIER_MAP -
HEADER_PREFIX
- See Also:
-
CLF_PATTERN
- See Also:
-
CLF_PATTERN_NAME
- See Also:
-
CLF_PATTERN_NAME_2
- See Also:
-
COMBINED_PATTERN
- See Also:
-
COMBINED_PATTERN_NAME
- See Also:
-
-
Constructor Details
-
PatternLayout
public PatternLayout()
-
-
Method Details
-
getDefaultConverterSupplierMap
public Map<String,Supplier<ch.qos.logback.core.pattern.DynamicConverter>> getDefaultConverterSupplierMap()Returns the default converter map for this instance.- Specified by:
getDefaultConverterSupplierMap
in classch.qos.logback.core.pattern.PatternLayoutBase<IAccessEvent>
-
getDefaultConverterMap
- Specified by:
getDefaultConverterMap
in classch.qos.logback.core.pattern.PatternLayoutBase<IAccessEvent>
-
doLayout
-
start
- Specified by:
start
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
start
in classch.qos.logback.core.pattern.PatternLayoutBase<IAccessEvent>
-
getPresentationHeaderPrefix
- Overrides:
getPresentationHeaderPrefix
in classch.qos.logback.core.pattern.PatternLayoutBase<IAccessEvent>
-