public class AsyncRequestLogWriter extends RequestLogWriter
Modifier and Type | Class and Description |
---|---|
private class |
AsyncRequestLogWriter.WriterThread |
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.BlockingQueue<java.lang.String> |
_queue |
private AsyncRequestLogWriter.WriterThread |
_thread |
private boolean |
_warnedFull |
private static Logger |
LOG |
Constructor and Description |
---|
AsyncRequestLogWriter() |
AsyncRequestLogWriter(java.lang.String filename) |
AsyncRequestLogWriter(java.lang.String filename,
java.util.concurrent.BlockingQueue<java.lang.String> queue) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
write(java.lang.String log) |
getDatedFilename, getFileName, getFilenameDateFormat, getRetainDays, getTimeZone, isAppend, isEnabled, setAppend, setFilename, setFilenameDateFormat, setRetainDays, setTimeZone
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
private static final Logger LOG
private final java.util.concurrent.BlockingQueue<java.lang.String> _queue
private transient AsyncRequestLogWriter.WriterThread _thread
private boolean _warnedFull
public AsyncRequestLogWriter()
public AsyncRequestLogWriter(java.lang.String filename)
public AsyncRequestLogWriter(java.lang.String filename, java.util.concurrent.BlockingQueue<java.lang.String> queue)
protected void doStart() throws java.lang.Exception
doStart
in class RequestLogWriter
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class RequestLogWriter
java.lang.Exception
public void write(java.lang.String log) throws java.io.IOException
write
in interface RequestLog.Writer
write
in class RequestLogWriter
java.io.IOException