org.jboss.logmanager.handlers
Class NullHandler
java.lang.Object
java.util.logging.Handler
org.jboss.logmanager.ExtHandler
org.jboss.logmanager.handlers.NullHandler
- All Implemented Interfaces:
- Closeable, Flushable, FlushableCloseable
public final class NullHandler
- extends ExtHandler
A handler which performs no action other than to run any attached filter.
Method Summary |
void |
close()
|
protected void |
doPublish(ExtLogRecord record)
Do the actual work of publication; the record will have been filtered already. |
void |
flush()
|
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 |
NullHandler
public NullHandler()
doPublish
protected void doPublish(ExtLogRecord record)
- Do the actual work of publication; the record will have been filtered already. The default implementation
does nothing except to flush if the
autoFlush
property is set to true
; if this behavior is to be
preserved in a subclass then this method should be called after the record is physically written.
- Overrides:
doPublish
in class ExtHandler
- Parameters:
record
- the log record to publish
flush
public void flush()
-
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Handler
close
public void close()
throws SecurityException
-
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Handler
- Throws:
SecurityException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.