com.sleepycat.je.utilint
Class ConsoleRedirectHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.ConsoleHandler
com.sleepycat.je.utilint.ConsoleRedirectHandler
public class ConsoleRedirectHandler
- extends ConsoleHandler
Redirects logging messages to the owning environment's console handler, so
that messages can be prefixed with an environment name. See LoggerUtils.java
for an explanation of why loggers must be instantiated per-class rather than
per-class-instance.
In rare cases, this ConsoleHandler may be used to actually publish on its
own.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleRedirectHandler
public ConsoleRedirectHandler()
publish
public void publish(LogRecord record)
- Overrides:
publish
in class ConsoleHandler
Copyright (c) 2004-2012 Oracle. All rights reserved.