me.escapeNT.pail
Class PailLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by me.escapeNT.pail.PailLogHandler

public class PailLogHandler
extends Handler

Log Handler to print the console output to the GUI

Author:
escapeNT

Constructor Summary
PailLogHandler(ScrollableTextArea output)
          Constructs a new log handler using the specified text area for output.
 
Method Summary
 void close()
           
 void flush()
           
 void publish(LogRecord record)
           
 
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
 

Constructor Detail

PailLogHandler

public PailLogHandler(ScrollableTextArea output)
Constructs a new log handler using the specified text area for output.

Parameters:
output - The JTextArea to write the log data to.
Method Detail

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler

flush

public void flush()
Specified by:
flush in class Handler

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException


Copyright © 2011. All Rights Reserved.