java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<E>
ch.qos.logback.core.testUtil.DummyEncoder<E>
- All Implemented Interfaces:
Encoder<E>
,ContextAware
,LifeCycle
-
Field Summary
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 TypeMethodDescriptionbyte[]
Encode an event as bytes.byte[]
Get footer bytes.byte[]
Get header bytes.void
setCharset
(Charset charset) void
setFileFooter
(String fileFooter) void
setFileHeader
(String fileHeader) 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, 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
-
DUMMY
-
-
Constructor Details
-
DummyEncoder
public DummyEncoder() -
DummyEncoder
-
-
Method Details
-
getCharset
-
setCharset
-
encode
Description copied from interface:Encoder
Encode an event as bytes.- Parameters:
event
-
-
headerBytes
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.
-
getFileHeader
-
setFileHeader
-