JBoss Log Manager 1.2.0.GA

org.jboss.logmanager.handlers
Class NullHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.jboss.logmanager.ExtHandler
          extended by 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.


Field Summary
 
Fields inherited from class org.jboss.logmanager.ExtHandler
handlers, handlersUpdater
 
Constructor Summary
NullHandler()
           
 
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 org.jboss.logmanager.ExtHandler
addHandler, checkAccess, clearHandlers, getHandlers, isAutoFlush, publish, publish, removeHandler, setAutoFlush, setHandlers
 
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

NullHandler

public NullHandler()
Method Detail

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

JBoss Log Manager 1.2.0.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.