@ManagedObject(value="NCSA standard format request log to slf4j bridge") public class Slf4jRequestLog extends AbstractNCSARequestLog
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
LOG
Constructor and Description |
---|
Slf4jRequestLog() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Set up request logging and open log file.
|
String |
getLoggerName() |
protected boolean |
isEnabled()
Is logging enabled
|
void |
setLoggerName(String loggerName) |
void |
write(String requestEntry)
Write requestEntry out.
|
doStop, 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
public void setLoggerName(String loggerName)
public String getLoggerName()
protected boolean isEnabled()
AbstractNCSARequestLog
isEnabled
in class AbstractNCSARequestLog
public void write(String requestEntry) throws IOException
AbstractNCSARequestLog
write
in class AbstractNCSARequestLog
requestEntry
- the request entryIOException
- if unable to write the entryprotected void doStart() throws Exception
AbstractNCSARequestLog
doStart
in class AbstractNCSARequestLog
Exception
AbstractLifeCycle.doStart()
Copyright © 1995-2015 Webtide. All Rights Reserved.