Package net.sf.eBus.util.logging
Class NullHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- net.sf.eBus.util.logging.NullHandler
-
public final class NullHandler extends Handler
This handler quietly does nothing with the given log records. Used as part of JUnit testing to allow logging statements to be exercised but no logging produced.- Author:
- Charles Rapp
-
-
Constructor Summary
Constructors Constructor Description NullHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Does nothing since there is nothing to close.voidflush()Does nothing since there is nothing to flushvoidpublish(LogRecord record)Quietly ignores the log record.-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Method Detail
-
publish
public void publish(LogRecord record)
Quietly ignores the log record.
-
flush
public void flush()
Does nothing since there is nothing to flush
-
-