com.sleepycat.je.utilint
Class FileRedirectHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.sleepycat.je.utilint.FileRedirectHandler

public class FileRedirectHandler
extends Handler

Redirects logging messages to the the owning environment's file handler, so that messages can be prefixed with an environment name and sent to the correct logging file. This class must not extend FileHandler itself, since FileHandlers open their target log files at construction time, and this FileHandler is meant to be stateless.


Constructor Summary
FileRedirectHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
 void publish(LogRecord record)
           
 
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
 

Constructor Detail

FileRedirectHandler

public FileRedirectHandler()
Method Detail

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException

flush

public void flush()
Specified by:
flush in class Handler


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