com.sleepycat.je.utilint
Class FormatterRedirectHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.ConsoleHandler
com.sleepycat.je.utilint.FormatterRedirectHandler
public class FormatterRedirectHandler
- extends ConsoleHandler
Redirect the ConsoleHandler to use a specific Formatter. This is the
same redirect approach used in
com.sleepycat.je.utilint.ConsoleRedirectHandler, but in this case, an
environment (and its associated stored console handler) is not available.
In order to still have prefixed logging output, we incur the higher level
cost of resetting the formatter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatterRedirectHandler
public FormatterRedirectHandler()
publish
public void publish(LogRecord record)
- Overrides:
publish
in class ConsoleHandler
Copyright (c) 2004-2012 Oracle. All rights reserved.