Package org.spf4j.log

Class ReadableLogbackEncoder

  • 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 final class ReadableLogbackEncoder
    extends ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    Author:
    Zoltan Farkas
    • 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.ILoggingEvent event)  
      byte[] footerBytes()  
      byte[] headerBytes()  
      void setCharset​(String charsetName)  
      void start()  
      String toString()  
      • Methods inherited from class ch.qos.logback.core.encoder.EncoderBase

        isStarted, 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

      • ReadableLogbackEncoder

        public ReadableLogbackEncoder()
    • Method Detail

      • setCharset

        public void setCharset​(String charsetName)
      • 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>
      • headerBytes

        public byte[] headerBytes()
      • encode

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

        public byte[] footerBytes()