be.six.reports.util
Class TextAreaHandler
java.lang.Object
java.util.logging.Handler
be.six.reports.util.TextAreaHandler
public class TextAreaHandler
- extends java.util.logging.Handler
Utility class to handle logging with a JTextArea
- Author:
- Joren Six
Constructor Summary |
TextAreaHandler()
Include filtering mechanism as it is not included in the (lame) Abstract Handler class. |
Method Summary |
void |
close()
|
void |
flush()
|
void |
publish(java.util.logging.LogRecord logRecord)
|
void |
setLevel(java.util.logging.Level level)
Must capture level to use in our custom filter, because this is not done in the
abstract class. |
static void |
setupLoggerHandler(javax.swing.JTextArea logJTextArea)
|
Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextAreaHandler
public TextAreaHandler()
- Include filtering mechanism as it is not included in the (lame) Abstract Handler class.
setupLoggerHandler
public static void setupLoggerHandler(javax.swing.JTextArea logJTextArea)
- Parameters:
logJTextArea
- setup logging for a JTextarea
publish
public void publish(java.util.logging.LogRecord logRecord)
- Specified by:
publish
in class java.util.logging.Handler
close
public void close()
throws java.lang.SecurityException
- Specified by:
close
in class java.util.logging.Handler
- Throws:
java.lang.SecurityException
flush
public void flush()
- Specified by:
flush
in class java.util.logging.Handler
setLevel
public void setLevel(java.util.logging.Level level)
- Must capture level to use in our custom filter, because this is not done in the
abstract class.
- Overrides:
setLevel
in class java.util.logging.Handler