public class MemoryHandler extends Handler
MemoryHandler maintains a circular buffer of LogRecords. The underlying circular
buffer implementation is implemented directly from java.util.logging.MemoryHandler, but this
handler extends the default JUL handler by allowing LogRecords to be handled in batch. Logs are
only written to file if a LogRecord at or above the push level is recorded.| Constructor and Description |
|---|
MemoryHandler()
Constructs a
MemoryHandler specified by:. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
isLoggable(LogRecord record) |
void |
publish(LogRecord record) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevelpublic MemoryHandler()
MemoryHandler specified by:.
public void close()
throws SecurityException
close in class HandlerSecurityExceptionpublic boolean isLoggable(LogRecord record)
isLoggable in class Handler