Class PatternLayoutBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.core.pattern.PatternLayoutBase<E>
- All Implemented Interfaces:
Layout<E>,ContextAware,LifeCycle
- Direct Known Subclasses:
PatternLayout
-
Field Summary
FieldsFields inherited from class ch.qos.logback.core.LayoutBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<String, Supplier<DynamicConverter>> Concrete implementations of this class are responsible for elaborating the mapping between pattern words and supplying converter instances.Returns a map where the default converter map is merged with the map contained in the context.Return the header of the logging event formatting.protected StringbooleanvoidsetOutputPatternAsHeader(boolean outputPatternAsHeader) voidsetPattern(String pattern) voidsetPostCompileProcessor(PostCompileProcessor<E> postCompileProcessor) voidstart()toString()protected StringwriteLoopOnConverters(E event) Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
postCompileProcessor
-
outputPatternAsHeader
-
-
Constructor Details
-
PatternLayoutBase
public PatternLayoutBase()
-
-
Method Details
-
getDefaultConverterSupplierMap
Concrete implementations of this class are responsible for elaborating the mapping between pattern words and supplying converter instances.- Returns:
- A map associating pattern words to the names of converter suppliers
- Since:
- 1.5.13
-
getEffectiveConverterMap
Returns a map where the default converter map is merged with the map contained in the context. -
start
-
setPostCompileProcessor
-
writeLoopOnConverters
-
getPattern
-
setPattern
-
toString
-
getInstanceConverterMap
-
getPresentationHeaderPrefix
-
isOutputPatternAsHeader
-
setOutputPatternAsHeader
-
getPresentationHeader
Description copied from interface:LayoutReturn the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeaderin interfaceLayout<E>- Overrides:
getPresentationHeaderin classLayoutBase<E>- Returns:
- The header.
-