public class AsyncNCSARequestLog extends NCSARequestLog
| Modifier and Type | Class and Description |
|---|---|
private class |
AsyncNCSARequestLog.WriterThread |
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.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, setRetainDaysgetAuthentication, getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, logExtended, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setLogTimeZone, setPreferProxiedForAddressaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopprivate 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
NCSARequestLogdoStart in class NCSARequestLogjava.lang.ExceptionAbstractLifeCycle.doStart()protected void doStop()
throws java.lang.Exception
NCSARequestLogdoStop in class NCSARequestLogjava.lang.ExceptionAbstractLifeCycle.doStop()public void write(java.lang.String log)
throws java.io.IOException
AbstractNCSARequestLogwrite in class NCSARequestLoglog - the request entryjava.io.IOException - if unable to write the entry