Class 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
    • Field Summary

      • Fields inherited from class ch.qos.logback.core.encoder.EncoderBase

        started
      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • 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.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 interface ch.qos.logback.core.spi.ContextAware

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
    • Constructor Detail

      • KibanaLogEventEncoder

        public KibanaLogEventEncoder()
        Constructor used by logging (e.g. logback config).
      • KibanaLogEventEncoder

        public KibanaLogEventEncoder​(LoggingEventConverter loggingEventConverter)
        Constructor used unit testing.
    • Method Detail

      • headerBytes

        public byte[] headerBytes()
      • encode

        public byte[] encode​(ch.qos.logback.classic.spi.LoggingEvent event)
      • footerBytes

        public byte[] footerBytes()