logahawk.listeners
Interface ListenerContainer

All Superinterfaces:
Listener
All Known Implementing Classes:
DefaultListenerContainer

public interface ListenerContainer
extends Listener

Defines a Listener that contains other Listener instances. All Loggers have one of these to handle managing their Listeners.


Method Summary
 void add(Listener... c)
          Adds Listeners to the logger.
 void log(LogMeta meta, String text)
          This will broadcast the log message to all the Listener objects registered with the this object.
 

Method Detail

log

void log(LogMeta meta,
         String text)
This will broadcast the log message to all the Listener objects registered with the this object.

Specified by:
log in interface Listener

add

void add(Listener... c)
Adds Listeners to the logger. When a message is logged it will be broadcast-ed to all Listeners. Multiple Loggers can share the same Listener.