jwo.utils.gui
Class GUIHandler

java.lang.Object
  extended byjava.util.logging.Handler
      extended byjava.util.logging.StreamHandler
          extended byjwo.utils.gui.GUIHandler

public class GUIHandler
extends StreamHandler

Creates a frame containing logger output. This is updated dynamically whenever a call to a logger that has registered this handler is made.

Version:
2.2, 23rd February, 2004.
Author:
Jo Wood

Constructor Summary
GUIHandler()
          Creates a GUI in which logger output is placed.
 
Method Summary
 JFrame getGUI()
          Retrieves the GUI used to report logging output.
 void publish(LogRecord record)
          Publishes a LogRecord to a GUI.
 
Methods inherited from class java.util.logging.StreamHandler
close, flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIHandler

public GUIHandler()
Creates a GUI in which logger output is placed.

Method Detail

publish

public void publish(LogRecord record)
Publishes a LogRecord to a GUI. The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

Parameters:
record - Description of the log event.

getGUI

public JFrame getGUI()
Retrieves the GUI used to report logging output.

Returns:
Frame holding console output.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005