logahawk.listeners
Class DefaultListenerContainer
java.lang.Object
logahawk.AbstractContainer<Listener>
logahawk.listeners.DefaultListenerContainer
- All Implemented Interfaces:
- Listener, ListenerContainer
@ThreadSafe
public class DefaultListenerContainer
- extends AbstractContainer<Listener>
- implements ListenerContainer
Default implementation of ListenerContainer
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultListenerContainer
public DefaultListenerContainer()
DefaultListenerContainer
public DefaultListenerContainer(Collection<Listener> c)
log
public void log(LogMeta meta,
String text)
- Broadcasts the log message. If an error is encountered, the logging will be interrupted, and all
Listener
s
after the current one will not receive the message. It is highly recommended to use a FailSafeListener
or
- Specified by:
log
in interface Listener
- Specified by:
log
in interface ListenerContainer