logahawk.listeners
Class ConsoleListener
java.lang.Object
logahawk.listeners.ConsoleListener
- All Implemented Interfaces:
- Listener
@ThreadSafe
public class ConsoleListener
- extends Object
- implements Listener
This will output all log statements to the console. This wraps a StreamListener to perform it duty.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newLine
protected String newLine
listener
protected StreamListener listener
ConsoleListener
public ConsoleListener()
ConsoleListener
public ConsoleListener(MessageFormatter formatter)
log
public void log(LogMeta meta,
String text)
- Description copied from interface:
Listener
- Logs the provided statement.
Normally this method should not throw any exceptions. If exceptions are expected it is recommend to wrap this
Listener with a FailSafeListener.
- Specified by:
log
in interface Listener