Class ConsoleTextRecordEncoder

java.lang.Object
ru.tinkoff.kora.logging.logback.ConsoleTextRecordEncoder
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 ConsoleTextRecordEncoder extends Object implements ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
  • Constructor Details

    • ConsoleTextRecordEncoder

      public ConsoleTextRecordEncoder()
  • Method Details

    • encode

      public byte[] encode(ch.qos.logback.classic.spi.ILoggingEvent event)
      Specified by:
      encode in interface ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
    • headerBytes

      public byte[] headerBytes()
      Specified by:
      headerBytes in interface ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
    • footerBytes

      public byte[] footerBytes()
      Specified by:
      footerBytes in interface ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
    • setContext

      public void setContext(ch.qos.logback.core.Context context)
      Specified by:
      setContext in interface ch.qos.logback.core.spi.ContextAware
    • getContext

      public ch.qos.logback.core.Context getContext()
      Specified by:
      getContext in interface ch.qos.logback.core.spi.ContextAware
    • addStatus

      public void addStatus(ch.qos.logback.core.status.Status status)
      Specified by:
      addStatus in interface ch.qos.logback.core.spi.ContextAware
    • addInfo

      public void addInfo(String msg)
      Specified by:
      addInfo in interface ch.qos.logback.core.spi.ContextAware
    • addInfo

      public void addInfo(String msg, Throwable ex)
      Specified by:
      addInfo in interface ch.qos.logback.core.spi.ContextAware
    • addWarn

      public void addWarn(String msg)
      Specified by:
      addWarn in interface ch.qos.logback.core.spi.ContextAware
    • addWarn

      public void addWarn(String msg, Throwable ex)
      Specified by:
      addWarn in interface ch.qos.logback.core.spi.ContextAware
    • addError

      public void addError(String msg)
      Specified by:
      addError in interface ch.qos.logback.core.spi.ContextAware
    • addError

      public void addError(String msg, Throwable ex)
      Specified by:
      addError in interface ch.qos.logback.core.spi.ContextAware
    • start

      public void start()
      Specified by:
      start in interface ch.qos.logback.core.spi.LifeCycle
    • stop

      public void stop()
      Specified by:
      stop in interface ch.qos.logback.core.spi.LifeCycle
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface ch.qos.logback.core.spi.LifeCycle