com.caucho.log
Class LevelHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.caucho.log.LevelHandler

public class LevelHandler
extends java.util.logging.Handler

Wrapper for a level-based handler.


Constructor Summary
LevelHandler(java.util.logging.Level level, java.util.logging.Handler[] handlers)
           
 
Method Summary
 void close()
           
 void flush()
          Flush the handler.
 void publish(java.util.logging.LogRecord record)
          Publishes the 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

LevelHandler

public LevelHandler(java.util.logging.Level level,
                    java.util.logging.Handler[] handlers)
Method Detail

publish

public void publish(java.util.logging.LogRecord record)
Publishes the record.

Specified by:
publish in class java.util.logging.Handler

flush

public void flush()
Flush the handler.

Specified by:
flush in class java.util.logging.Handler

close

public void close()
Specified by:
close in class java.util.logging.Handler