com.sleepycat.je.utilint
Class ConsoleRedirectHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.ConsoleHandler
              extended by 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.


Constructor Summary
ConsoleRedirectHandler()
           
 
Method Summary
 void publish(LogRecord record)
           
 
Methods inherited from class java.util.logging.ConsoleHandler
close
 
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleRedirectHandler

public ConsoleRedirectHandler()
Method Detail

publish

public void publish(LogRecord record)
Overrides:
publish in class ConsoleHandler


Copyright (c) 2004-2012 Oracle. All rights reserved.