public class MemoryHandler
extends java.util.logging.Handler
Constructor and Description |
---|
MemoryHandler()
Create a MemoryHandler and configure it based on LogManager properties
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the handler
|
void |
flush()
Flush the ring buffer
|
java.util.List<java.lang.String> |
getMessages(int msgCount)
Return the log messages from the ring buffer
|
void |
publish(java.util.logging.LogRecord record)
Store a LogRecord in the ring buffer
|
public MemoryHandler()
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
record
- Description of the log event. A null record is
silently ignored and is not publishedpublic java.util.List<java.lang.String> getMessages(int msgCount)
msgCount
- Number of messages to returnpublic void flush()
flush
in class java.util.logging.Handler
public void close()
close
in class java.util.logging.Handler