Top Description Fields Constructors Methods
org.eclipse.jetty.server

public Class Slf4jRequestLogWriter

extends AbstractLifeCycle
implements Writer
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.RequestLog.Writer
Annotations
@ManagedObject:Slf4j RequestLog Writer
Imports
java.io.IOException, org.eclipse.jetty.util.annotation.ManagedAttribute, .ManagedObject, org.eclipse.jetty.util.component.AbstractLifeCycle, org.slf4j.LoggerFactory

Request log writer using a Slf4jLog Logger

Field Summary

Modifier and TypeField and Description
private Logger
private String
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
FAILEDSTARTEDSTARTINGSTOPPEDSTOPPING

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
doStart()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

public String
protected boolean
public void
setLoggerName(String loggerName)

public void
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
addEventListenerdoStopgetEventListenersgetStategetStateisFailedisRunningisStartedisStartingisStoppedisStoppingremoveEventListenersetEventListenersstartstoptoString

Field Detail

loggerback to summary
private Logger logger
loggerNameback to summary
private String loggerName

Constructor Detail

Slf4jRequestLogWriterback to summary
public Slf4jRequestLogWriter()

Method Detail

doStartback to summary
protected void doStart() throws Exception

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem starting. Will cause a transition to FAILED state
getLoggerNameback to summary
public String getLoggerName()
Annotations
@ManagedAttribute:logger name
isEnabledback to summary
protected boolean isEnabled()
setLoggerNameback to summary
public void setLoggerName(String loggerName)
writeback to summary
public void write(String requestEntry) throws IOException

Implements org.eclipse.jetty.server.RequestLog.Writer.write.

Annotations
@Override