Package ch.qos.logback.core.encoder
Class EchoEncoder<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.encoder.EncoderBase<E>
-
- ch.qos.logback.core.encoder.EchoEncoder<E>
-
- All Implemented Interfaces:
Encoder<E>
,ContextAware
,LifeCycle
@Deprecated(since="2022-01-27") public class EchoEncoder<E> extends EncoderBase<E>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description EchoEncoder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
encode(E event)
Deprecated.Encode an event as bytes.byte[]
footerBytes()
Deprecated.Get footer bytes.byte[]
headerBytes()
Deprecated.Get header bytes.-
Methods inherited from class ch.qos.logback.core.encoder.EncoderBase
isStarted, start, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, 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
-
-
-
-
Method Detail
-
encode
public byte[] encode(E event)
Deprecated.Description copied from interface:Encoder
Encode an event as bytes.
-
footerBytes
public byte[] footerBytes()
Deprecated.Description copied from interface:Encoder
Get footer bytes. This method is typically called prior to the closing of the stream where events are written.- Returns:
- footer bytes. Null values are allowed.
-
headerBytes
public byte[] headerBytes()
Deprecated.Description copied from interface:Encoder
Get header bytes. This method is typically called upon opening of an output stream.- Returns:
- header bytes. Null values are allowed.
-
-