@ManagedObject(value="NCSA standard format request log to slf4j bridge") public class Slf4jRequestLog extends AbstractNCSARequestLog
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
private Slf4jLog |
logger |
private java.lang.String |
loggerName |
LOG
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Constructor and Description |
---|
Slf4jRequestLog() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Set up request logging and open log file.
|
java.lang.String |
getLoggerName() |
protected boolean |
isEnabled()
Is logging enabled
|
void |
setLoggerName(java.lang.String loggerName) |
void |
write(java.lang.String requestEntry)
Write requestEntry out.
|
doStop, getAuthentication, getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, logExtended, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setLogTimeZone, setPreferProxiedForAddress
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
private Slf4jLog logger
private java.lang.String loggerName
public void setLoggerName(java.lang.String loggerName)
public java.lang.String getLoggerName()
protected boolean isEnabled()
AbstractNCSARequestLog
isEnabled
in class AbstractNCSARequestLog
public void write(java.lang.String requestEntry) throws java.io.IOException
AbstractNCSARequestLog
write
in class AbstractNCSARequestLog
requestEntry
- the request entryjava.io.IOException
- if unable to write the entryprotected void doStart() throws java.lang.Exception
AbstractNCSARequestLog
doStart
in class AbstractNCSARequestLog
java.lang.Exception
AbstractLifeCycle.doStart()