public abstract class WGAAsyncLogger<D extends LogData> extends java.lang.Object implements WGALogger
LogData object and put up a loggerQueue.
Every 10 seconds a background task writes the queue data to the log target.| Constructor and Description |
|---|
WGAAsyncLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the logger is closed
|
long |
getLastLogged() |
java.util.concurrent.ConcurrentLinkedQueue<D> |
getQueue() |
void |
init(de.innovationgate.wga.config.AccessLog config,
WGACore core) |
void |
logRequest(javax.servlet.ServletRequest request)
Receives logger requests to log them.
|
public final void init(de.innovationgate.wga.config.AccessLog config,
WGACore core)
throws WGALoggerException
init in interface WGALoggerWGALoggerExceptionpublic void logRequest(javax.servlet.ServletRequest request)
throws WGALoggerException
WGALoggerlogRequest in interface WGALoggerWGALoggerExceptionpublic void close()
WGALoggerclose in interface WGALoggerWGALogger.close()public long getLastLogged()
public java.util.concurrent.ConcurrentLinkedQueue<D> getQueue()