com.sleepycat.je.utilint
Class FormatterRedirectHandler

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.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.


Constructor Summary
FormatterRedirectHandler()
           
 
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

FormatterRedirectHandler

public FormatterRedirectHandler()
Method Detail

publish

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


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