Package ch.qos.logback.core.pattern
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
@Deprecated(since="2022-01-27") public abstract class PatternLayoutBase<E> extends LayoutBase<E>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description PatternLayoutBase()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract java.util.Map<java.lang.String,java.lang.String>
getDefaultConverterMap()
Deprecated.Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.java.util.Map<java.lang.String,java.lang.String>
getEffectiveConverterMap()
Deprecated.Returns a map where the default converter map is merged with the map contained in the context.java.util.Map<java.lang.String,java.lang.String>
getInstanceConverterMap()
Deprecated.java.lang.String
getPattern()
Deprecated.java.lang.String
getPresentationHeader()
Deprecated.Return the header of the logging event formatting.boolean
isOutputPatternAsHeader()
Deprecated.void
setOutputPatternAsHeader(boolean outputPatternAsHeader)
Deprecated.void
setPattern(java.lang.String pattern)
Deprecated.void
setPostCompileProcessor(PostCompileProcessor<E> postCompileProcessor)
Deprecated.void
start()
Deprecated.java.lang.String
toString()
Deprecated.-
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, getStatusManager
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDefaultConverterMap
public abstract java.util.Map<java.lang.String,java.lang.String> getDefaultConverterMap()
Deprecated.Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.- Returns:
- A map associating pattern words to the names of converter classes
-
getEffectiveConverterMap
public java.util.Map<java.lang.String,java.lang.String> getEffectiveConverterMap()
Deprecated.Returns a map where the default converter map is merged with the map contained in the context.
-
start
public void start()
Deprecated.- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classLayoutBase<E>
-
setPostCompileProcessor
public void setPostCompileProcessor(PostCompileProcessor<E> postCompileProcessor)
Deprecated.
-
getPattern
public java.lang.String getPattern()
Deprecated.
-
setPattern
public void setPattern(java.lang.String pattern)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getInstanceConverterMap
public java.util.Map<java.lang.String,java.lang.String> getInstanceConverterMap()
Deprecated.
-
isOutputPatternAsHeader
public boolean isOutputPatternAsHeader()
Deprecated.
-
setOutputPatternAsHeader
public void setOutputPatternAsHeader(boolean outputPatternAsHeader)
Deprecated.
-
getPresentationHeader
public java.lang.String getPresentationHeader()
Deprecated.Description copied from interface:Layout
Return the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeader
in interfaceLayout<E>
- Overrides:
getPresentationHeader
in classLayoutBase<E>
- Returns:
- The header.
-
-