Class SyslogMessagePrefixEncoder

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
ch.admin.bag.covidcertificate.log.syslog.encoder.SyslogMessagePrefixEncoder
All Implemented Interfaces:
ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

public class SyslogMessagePrefixEncoder
extends ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
A logback Encoder providing a message prefix according to the syslog BSD format as specified in RFC3164.
  • 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

    Constructors
    Constructor Description
    SyslogMessagePrefixEncoder()  
  • Method Summary

    Modifier and Type Method Description
    byte[] encode​(ch.qos.logback.classic.spi.ILoggingEvent event)  
    byte[] footerBytes()  
    byte[] headerBytes()  
    void start()  
    void stop()  

    Methods inherited from class ch.qos.logback.core.encoder.EncoderBase

    isStarted

    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
  • Constructor Details

    • SyslogMessagePrefixEncoder

      public SyslogMessagePrefixEncoder()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface ch.qos.logback.core.spi.LifeCycle
      Overrides:
      start in class ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    • stop

      public void stop()
      Specified by:
      stop in interface ch.qos.logback.core.spi.LifeCycle
      Overrides:
      stop in class ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    • headerBytes

      public byte[] headerBytes()
    • encode

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

      public byte[] footerBytes()