Class LoggerNameJsonProvider

  • All Implemented Interfaces:
    ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle, JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>

    public class LoggerNameJsonProvider
    extends AbstractFieldJsonProvider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FIELD_LOGGER_NAME  
      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setTargetLength​(int targetLength)  
      void start()  
      void stop()  
      protected void writeExactlyOneField​(JsonEventWriter writer, ch.qos.logback.classic.spi.ILoggingEvent event)
      Write exactly one field into JSON event layout.
      • 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
    • Field Detail

      • FIELD_LOGGER_NAME

        public static final java.lang.String FIELD_LOGGER_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoggerNameJsonProvider

        public LoggerNameJsonProvider()
    • Method Detail

      • start

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

        public void stop()
        Specified by:
        stop in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        stop in class AbstractFieldJsonProvider
      • setTargetLength

        public void setTargetLength​(int targetLength)