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, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
Method to override to start the lifecycleprotected boolean
void
setLoggerName
(String loggerName) void
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
-
Constructor Details
-
Slf4jRequestLogWriter
public Slf4jRequestLogWriter()
-
-
Method Details
-
setLoggerName
-
getLoggerName
-
isEnabled
protected boolean isEnabled() -
write
- Specified by:
write
in interfaceRequestLog.Writer
- Throws:
IOException
-
doStart
Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-