public class LogHandler extends Handler
Modifier and Type | Field and Description |
---|---|
static int |
RING_SIZE
Maximum number of log records retained.
|
Modifier | Constructor and Description |
---|---|
protected |
LogHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
static LogHandler |
getInstance()
Returns the standard instance of this class.
|
Color |
getRecordColor(LogRecord record)
Maps log records to display colours.
|
void |
publish(LogRecord record) |
void |
showWindow(Component parent)
Displays a logging window which displays recent (the last 1000) and
any future log messages.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public static final int RING_SIZE
protected LogHandler()
getInstance()
.public Color getRecordColor(LogRecord record)
record
- log recordpublic void showWindow(Component parent)
parent
- parent component, may be used for positioningpublic static LogHandler getInstance()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.