public class AsyncNCSARequestLog extends NCSARequestLog
Modifier and Type | Class and Description |
---|---|
private class |
AsyncNCSARequestLog.WriterThread |
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.BlockingQueue<java.lang.String> |
_queue |
private AsyncNCSARequestLog.WriterThread |
_thread |
private boolean |
_warnedFull |
private static Logger |
LOG |
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
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 static final Logger LOG
private final java.util.concurrent.BlockingQueue<java.lang.String> _queue
private transient AsyncNCSARequestLog.WriterThread _thread
private boolean _warnedFull
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 entry