intarsys runtime library

de.intarsys.tools.logging
Class CompositeHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by de.intarsys.tools.logging.CompositeHandler

public class CompositeHandler
extends Handler

A Java logging Handler that forwards to a collection of other Handler instances.


Constructor Summary
CompositeHandler()
           
 
Method Summary
 void addHandler(Handler handler)
           
 void close()
           
 void flush()
           
 Handler[] getHandlers()
           
 void publish(LogRecord record)
           
 void removeHandler(Handler handler)
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeHandler

public CompositeHandler()
Method Detail

addHandler

public void addHandler(Handler handler)

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException

flush

public void flush()
Specified by:
flush in class Handler

getHandlers

public Handler[] getHandlers()

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler

removeHandler

public void removeHandler(Handler handler)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.