me.escapeNT.pail
Class PailLogHandler
java.lang.Object
java.util.logging.Handler
me.escapeNT.pail.PailLogHandler
public class PailLogHandler
- extends Handler
Log Handler to print the console output to the GUI
- Author:
- escapeNT
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 |
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.
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.