logahawk
Class FlattenedMultiLogger

java.lang.Object
  extended by logahawk.AbstractContainer<Logger>
      extended by logahawk.MultiLogger
          extended by logahawk.FlattenedMultiLogger
All Implemented Interfaces:
Logger

public class FlattenedMultiLogger
extends MultiLogger

A variation of MultiLogger that will flatten a hierarchy of FlattenedMultiLogger. That is to say, if any of the added Loggers are added, the contained Loggers will be pulled out and added directly, and the parent FlattenedMultiLogger will be ignored.


Field Summary
 
Fields inherited from class logahawk.AbstractContainer
items
 
Fields inherited from interface logahawk.Logger
LINE_SEPARATOR
 
Constructor Summary
FlattenedMultiLogger()
           
 
Method Summary
 void addAll(Collection<Logger> c)
          Adds the items in the order they provided.
 
Methods inherited from class logahawk.MultiLogger
alert, debug, error, fatal, getLoggers, info, log, panic, warn
 
Methods inherited from class logahawk.AbstractContainer
add, clear
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattenedMultiLogger

public FlattenedMultiLogger()
Method Detail

addAll

public void addAll(Collection<Logger> c)
Description copied from class: AbstractContainer
Adds the items in the order they provided. The items will be used (in the appropriate fashion) in the same order.

Overrides:
addAll in class AbstractContainer<Logger>