Class KibanaLogEventEncoder
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.LoggingEvent>
-
- org.hawaiiframework.logging.logback.KibanaLogEventEncoder
-
- All Implemented Interfaces:
ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.LoggingEvent>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.LifeCycle
public class KibanaLogEventEncoder extends ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.LoggingEvent>
LoggingEvent encoder for Kibana.- Since:
- 2.0.0
- Author:
- Rutger Lubbers
-
-
Constructor Summary
Constructors Constructor Description KibanaLogEventEncoder()
Constructor used by logging (e.g.KibanaLogEventEncoder(LoggingEventConverter loggingEventConverter)
Constructor used unit testing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encode(ch.qos.logback.classic.spi.LoggingEvent event)
byte[]
footerBytes()
byte[]
headerBytes()
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
KibanaLogEventEncoder
public KibanaLogEventEncoder()
Constructor used by logging (e.g. logback config).
-
KibanaLogEventEncoder
public KibanaLogEventEncoder(LoggingEventConverter loggingEventConverter)
Constructor used unit testing.
-
-