jAER project on SourceForge

net.sf.jaer.util
Class LoggingWindowHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by net.sf.jaer.util.LoggingWindowHandler

public class LoggingWindowHandler
extends java.util.logging.Handler

A singleton handler for uncaught exceptions.


Method Summary
 void close()
           
 void flush()
           
static LoggingWindowHandler getInstance()
          Returns the instance
 void publish(java.util.logging.LogRecord record)
          If record is loggable, format it and add it to window
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LoggingWindowHandler getInstance()
Returns the instance


close

public void close()
Specified by:
close in class java.util.logging.Handler

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler

publish

public void publish(java.util.logging.LogRecord record)
If record is loggable, format it and add it to window

Specified by:
publish in class java.util.logging.Handler

jAER project on SourceForge