public class AsyncNCSARequestLog extends NCSARequestLog
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Constructor and Description |
---|
AsyncNCSARequestLog() |
AsyncNCSARequestLog(java.util.concurrent.BlockingQueue<java.lang.String> queue) |
AsyncNCSARequestLog(java.lang.String filename) |
AsyncNCSARequestLog(java.lang.String filename,
java.util.concurrent.BlockingQueue<java.lang.String> queue) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Set up request logging and open log file.
|
protected void |
doStop()
Close the log file and perform cleanup.
|
void |
write(java.lang.String log)
Write requestEntry out.
|
getDatedFilename, getFilename, getFilenameDateFormat, getRetainDays, isAppend, isEnabled, setAppend, setFilename, setFilenameDateFormat, setRetainDays
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 AsyncNCSARequestLog()
public AsyncNCSARequestLog(java.util.concurrent.BlockingQueue<java.lang.String> queue)
public AsyncNCSARequestLog(java.lang.String filename)
public AsyncNCSARequestLog(java.lang.String filename, java.util.concurrent.BlockingQueue<java.lang.String> queue)
protected void doStart() throws java.lang.Exception
NCSARequestLog
doStart
in class NCSARequestLog
java.lang.Exception
AbstractLifeCycle.doStart()
protected void doStop() throws java.lang.Exception
NCSARequestLog
doStop
in class NCSARequestLog
java.lang.Exception
AbstractLifeCycle.doStop()
public void write(java.lang.String log) throws java.io.IOException
AbstractNCSARequestLog
write
in class NCSARequestLog
log
- the request entryjava.io.IOException
- if unable to write the entryCopyright © 1995–2017 Webtide. All rights reserved.