Package org.eclipse.jetty.server
Class AsyncNCSARequestLog
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.AbstractNCSARequestLog
-
- org.eclipse.jetty.server.NCSARequestLog
-
- org.eclipse.jetty.server.AsyncNCSARequestLog
-
- All Implemented Interfaces:
RequestLog,org.eclipse.jetty.util.component.LifeCycle
public class AsyncNCSARequestLog extends NCSARequestLog
An asynchronously writing NCSA Request Log
-
-
Constructor Summary
Constructors Constructor Description AsyncNCSARequestLog()AsyncNCSARequestLog(String filename)AsyncNCSARequestLog(String filename, BlockingQueue<String> queue)AsyncNCSARequestLog(BlockingQueue<String> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()Set up request logging and open log file.protected voiddoStop()Close the log file and perform cleanup.voidwrite(String log)Write requestEntry out.-
Methods inherited from class org.eclipse.jetty.server.NCSARequestLog
getDatedFilename, getFilename, getFilenameDateFormat, getRetainDays, isAppend, isEnabled, setAppend, setFilename, setFilenameDateFormat, setRetainDays
-
Methods inherited from class org.eclipse.jetty.server.AbstractNCSARequestLog
getAuthentication, getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, logExtended, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setLogTimeZone, setPreferProxiedForAddress
-
-
-
-
Constructor Detail
-
AsyncNCSARequestLog
public AsyncNCSARequestLog()
-
AsyncNCSARequestLog
public AsyncNCSARequestLog(BlockingQueue<String> queue)
-
AsyncNCSARequestLog
public AsyncNCSARequestLog(String filename)
-
AsyncNCSARequestLog
public AsyncNCSARequestLog(String filename, BlockingQueue<String> queue)
-
-
Method Detail
-
doStart
protected void doStart() throws ExceptionDescription copied from class:NCSARequestLogSet up request logging and open log file.- Overrides:
doStartin classNCSARequestLog- Throws:
Exception- See Also:
AbstractLifeCycle.doStart()
-
doStop
protected void doStop() throws ExceptionDescription copied from class:NCSARequestLogClose the log file and perform cleanup.- Overrides:
doStopin classNCSARequestLog- Throws:
Exception- See Also:
AbstractLifeCycle.doStop()
-
write
public void write(String log) throws IOException
Description copied from class:AbstractNCSARequestLogWrite requestEntry out. (to disk or slf4j log)- Overrides:
writein classNCSARequestLog- Parameters:
log- the request entry- Throws:
IOException- if unable to write the entry
-
-