de.infinityloop.util.log
Interface LogBroadcaster

All Known Implementing Classes:
LogBroadcasterImpl, LogEventAggregator, LogEventCollector, LogSource

public interface LogBroadcaster

This interface allows registering as a LogListener.

Author:
Christian Roth

Method Summary
 void addLogListener(LogListener ls)
          Call to attach a Listener for log events received by the LogBroadcaster.
 LogEvent broadcast(LogEvent le)
          Method to dispatch the specified log event to all registered listeners on this broadcaster.
 void removeLogListener(LogListener ls)
          Call to detach a Listener for log events received by the LogBroadcaster.
 

Method Detail

addLogListener

void addLogListener(LogListener ls)
Call to attach a Listener for log events received by the LogBroadcaster.

Parameters:
ls - the listener instance

removeLogListener

void removeLogListener(LogListener ls)
Call to detach a Listener for log events received by the LogBroadcaster.

Parameters:
ls - the listener instance

broadcast

LogEvent broadcast(LogEvent le)
Method to dispatch the specified log event to all registered listeners on this broadcaster. A Broadcaster is always the source of a logging event coming in from external.

Parameters:
le - the logging event
Returns:
the logging event that was supplied as parameter