Package ch.qos.logback.core.encoder
Class LayoutWrappingEncoder<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<E>
ch.qos.logback.core.encoder.LayoutWrappingEncoder<E>
- All Implemented Interfaces:
Encoder<E>,ContextAware,LifeCycle
- Direct Known Subclasses:
PatternLayoutEncoderBase
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.Encode an event as bytes.byte[]Deprecated.Get footer bytes.Deprecated.Deprecated.byte[]Deprecated.Get header bytes.booleanDeprecated.voidsetCharset(Charset charset) Deprecated.Set the charset to use when converting the string returned by the layout into bytes.voidsetImmediateFlush(boolean immediateFlush) Deprecated.Sets the immediateFlush option.voidDeprecated.voidsetParent(ContextAware parent) Deprecated.This method allows RollingPolicy implementations to be aware of their containing appender.voidstart()Deprecated.voidstop()Deprecated.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContextMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
LayoutWrappingEncoder
public LayoutWrappingEncoder()Deprecated.
-
-
Method Details
-
getLayout
Deprecated. -
setLayout
Deprecated. -
getCharset
Deprecated. -
setCharset
Deprecated.Set the charset to use when converting the string returned by the layout into bytes. By default this property has the valuenull which corresponds to the system's default charset.- Parameters:
charset-
-
setImmediateFlush
public void setImmediateFlush(boolean immediateFlush) Deprecated.Sets the immediateFlush option. The default value for immediateFlush is 'true'. If set to true, the doEncode() method will immediately flush the underlying OutputStream. Although immediate flushing is safer, it also significantly degrades logging throughput.- Since:
- 1.0.3
-
headerBytes
public byte[] headerBytes()Deprecated.Description copied from interface:EncoderGet header bytes. This method is typically called upon opening of an output stream.- Returns:
- header bytes. Null values are allowed.
-
encode
Deprecated.Description copied from interface:EncoderEncode an event as bytes.- Parameters:
event-
-
isStarted
public boolean isStarted()Deprecated.- Specified by:
isStartedin interfaceLifeCycle- Overrides:
isStartedin classEncoderBase<E>
-
start
public void start()Deprecated.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classEncoderBase<E>
-
stop
public void stop()Deprecated.- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classEncoderBase<E>
-
setParent
Deprecated.This method allows RollingPolicy implementations to be aware of their containing appender.- Parameters:
parent-
-