java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<E>
ch.qos.logback.core.encoder.JsonEncoderBase<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Encoder<E>,ContextAware,LifeCycle
This class allows for concrete encoders to write json log messages.
- Author:
- Henry John Kupty
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ch.qos.logback.core.encoder.EncoderBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get footer bytes.byte[]Get header bytes.Methods inherited from class ch.qos.logback.core.encoder.EncoderBase
isStarted, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, 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
-
JsonEncoderBase
public JsonEncoderBase()
-
-
Method Details
-
headerBytes
public byte[] 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.
-