java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<E>
ch.qos.logback.core.encoder.LayoutWrappingEncoder<E>
ch.qos.logback.core.pattern.PatternLayoutEncoderBase<E>
- All Implemented Interfaces:
Encoder<E>
,ContextAware
,LifeCycle
- Direct Known Subclasses:
PatternLayoutEncoder
-
Field Summary
Fields inherited from class ch.qos.logback.core.encoder.LayoutWrappingEncoder
layout
Fields inherited from class ch.qos.logback.core.encoder.EncoderBase
started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
void
setOutputPatternAsHeader
(boolean outputPatternAsHeader) Print the pattern string as a header in log filesvoid
setOutputPatternAsPresentationHeader
(boolean outputPatternAsHeader) Deprecated.void
setPattern
(String pattern) Methods inherited from class ch.qos.logback.core.encoder.LayoutWrappingEncoder
encode, footerBytes, getCharset, getLayout, headerBytes, isStarted, setCharset, setImmediateFlush, setParent, start, stop
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
outputPatternAsHeader
-
-
Constructor Details
-
PatternLayoutEncoderBase
public PatternLayoutEncoderBase()
-
-
Method Details
-
getPattern
-
setPattern
-
isOutputPatternAsHeader
-
setOutputPatternAsHeader
Print the pattern string as a header in log files- Parameters:
outputPatternAsHeader
-- Since:
- 1.0.3
-
isOutputPatternAsPresentationHeader
-
setOutputPatternAsPresentationHeader
Deprecated.replaced bysetOutputPatternAsHeader(boolean)
-
setLayout
- Overrides:
setLayout
in classLayoutWrappingEncoder<E>
-
setOutputPatternAsHeader(boolean)