Class Slf4jRequestLogWriter

  • All Implemented Interfaces:
    RequestLog.Writer, org.eclipse.jetty.util.component.LifeCycle

    @ManagedObject("Slf4j RequestLog Writer")
    public class Slf4jRequestLogWriter
    extends org.eclipse.jetty.util.component.AbstractLifeCycle
    implements RequestLog.Writer
    Request log writer using a Slf4jLog Logger
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, STARTED, STARTING, STOPPED, STOPPING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doStart()  
      java.lang.String getLoggerName()  
      protected boolean isEnabled()  
      void setLoggerName​(java.lang.String loggerName)  
      void write​(java.lang.String requestEntry)  
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Slf4jRequestLogWriter

        public Slf4jRequestLogWriter()
    • Method Detail

      • setLoggerName

        public void setLoggerName​(java.lang.String loggerName)
      • getLoggerName

        @ManagedAttribute("logger name")
        public java.lang.String getLoggerName()
      • isEnabled

        protected boolean isEnabled()
      • write

        public void write​(java.lang.String requestEntry)
                   throws java.io.IOException
        Specified by:
        write in interface RequestLog.Writer
        Throws:
        java.io.IOException
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Overrides:
        doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
        Throws:
        java.lang.Exception