Package adams.core.logging
Class ConsolePanelHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- adams.core.logging.AbstractLogHandler
-
- adams.core.logging.ConsolePanelHandler
-
- All Implemented Interfaces:
Comparable<Handler>
public class ConsolePanelHandler extends AbstractLogHandler
Specialized logger for outputting the logging in theConsolePanel
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected ConsolePanel
m_ConsolePanel
the console panel.-
Fields inherited from class adams.core.logging.AbstractLogHandler
m_LoggingListeners, m_LogUsed
-
-
Constructor Summary
Constructors Constructor Description ConsolePanelHandler()
-
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_ConsolePanel
protected ConsolePanel m_ConsolePanel
the console panel.
-
-
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 classAbstractLogHandler
- Parameters:
record
- description of the log event. A null record is silently ignored and is not published
-
-