Package adams.terminal
Class Main.LogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- adams.core.logging.AbstractLogHandler
-
- adams.terminal.Main.LogHandler
-
- All Implemented Interfaces:
Comparable<Handler>
- Enclosing class:
- Main
public static class Main.LogHandler extends adams.core.logging.AbstractLogHandler
The log handler for the application.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description LogHandler(Main owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPublish(LogRecord record)
Publish a LogRecord.-
Methods inherited from class adams.core.logging.AbstractLogHandler
addLoggingListener, close, compareTo, equals, flush, initialize, iterator, loggingListeners, notifyLoggingListeners, postPublish, publish, removeLoggingListener, removeLoggingListeners, reset, setUp
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Field Detail
-
m_Owner
protected Main m_Owner
the owner.
-
-
Constructor Detail
-
LogHandler
public LogHandler(Main owner)
-
-
Method Detail
-
doPublish
protected void doPublish(LogRecord record)
Publish a LogRecord.The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.
- Specified by:
doPublish
in classadams.core.logging.AbstractLogHandler
- Parameters:
record
- description of the log event. A null record is silently ignored and is not published
-
-