org.aitools.programd.util
Class JDKLogHandler
java.lang.Object
java.util.logging.Handler
org.aitools.programd.util.JDKLogHandler
public class JDKLogHandler
- extends Handler
This handler takes a log message sent to the JDK's logging
system and sends it to log4j.
- Author:
- Noel Bush
| 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 |
JDKLogHandler
public JDKLogHandler()
setupInterception
public static void setupInterception()
- Removes any handlers attached to the JDK root logger,
and adds an instance of this.
publish
public void publish(LogRecord record)
- Specified by:
publish in class Handler
- See Also:
Handler.publish(java.util.logging.LogRecord)
flush
public void flush()
- Specified by:
flush in class Handler
close
public void close()
throws SecurityException
- Specified by:
close in class Handler
- Throws:
SecurityException