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
-
Field Summary
Fields inherited from class EncoderBase
startedFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Encode an event as bytes.byte[]Get footer bytes.byte[]Get header bytes.Methods inherited from class EncoderBase
isStarted, start, stopMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
EchoEncoder
public EchoEncoder()
-
-
Method Details
-
encode
-
headerBytes
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.
-