Package org.eclipse.jetty.server
Class Slf4jRequestLogWriter
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.Slf4jRequestLogWriter
-
- All Implemented Interfaces:
RequestLog.Writer
,LifeCycle
@ManagedObject("Slf4j RequestLog Writer") public class Slf4jRequestLogWriter extends 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
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description Slf4jRequestLogWriter()
-
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
addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
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 interfaceRequestLog.Writer
- Throws:
java.io.IOException
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
-