|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
be.hogent.tarsos.util.TextAreaHandler
public final class TextAreaHandler
Utility class to handle logging with a JTextArea
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 newLevel)
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, reportError, setEncoding, setErrorManager, setFilter, setFormatter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAreaHandler()
Method Detail |
---|
public static void setupLoggerHandler(javax.swing.JTextArea logJTextArea)
logJTextArea
- setup logging for a JTextareapublic void publish(java.util.logging.LogRecord logRecord)
publish
in class java.util.logging.Handler
public void close()
close
in class java.util.logging.Handler
public void flush()
flush
in class java.util.logging.Handler
public void setLevel(java.util.logging.Level newLevel)
setLevel
in class java.util.logging.Handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |