org.lsst.ccs.utilities.logging
Class ConsoleHandlerN

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.ConsoleHandler
              extended by org.lsst.ccs.utilities.logging.ConsoleHandlerN

public class ConsoleHandlerN
extends ConsoleHandler

A Console handler that detects duplicate logs.
This Handler systematically eliminates the standard ConsoleHandler that could be running at the top of the hierarchy.

Author:
bamade

Field Summary
protected static IsLoggableDelegate isLoggableDelegate
           
 
Constructor Summary
ConsoleHandlerN()
           
 
Method Summary
 boolean isLoggable(LogRecord record)
           
 
Methods inherited from class java.util.logging.ConsoleHandler
close, publish
 
Methods inherited from class java.util.logging.StreamHandler
flush, 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
 

Field Detail

isLoggableDelegate

protected static IsLoggableDelegate isLoggableDelegate
Constructor Detail

ConsoleHandlerN

public ConsoleHandlerN()
Method Detail

isLoggable

public boolean isLoggable(LogRecord record)
Overrides:
isLoggable in class StreamHandler


Copyright © 2013 LSST. All Rights Reserved.