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 WGALogger
WGALoggerException
public void logRequest(javax.servlet.ServletRequest request) throws WGALoggerException
WGALogger
logRequest
in interface WGALogger
WGALoggerException
public void close()
WGALogger
close
in interface WGALogger
WGALogger.close()
public long getLastLogged()
public java.util.concurrent.ConcurrentLinkedQueue<D> getQueue()