maslab.util
Class ConsoleLoggerPublisher
java.lang.Object
maslab.util.LoggerPublisher
maslab.util.ConsoleLoggerPublisher
public class ConsoleLoggerPublisher
- extends LoggerPublisher
A simple publisher for the Logger class that simply prints to the console.
Messages are filtered by a global level threshold and a per-channel level
threshold. If the message meets either criterion, the message is published.
|
Method Summary |
void |
publish(java.lang.String name,
int level,
java.lang.String message)
Called when data is published. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLoggerPublisher
public ConsoleLoggerPublisher()
- Create a new publisher with a default threshold of verbose.
publish
public void publish(java.lang.String name,
int level,
java.lang.String message)
- Called when data is published.
- Overrides:
publish in class LoggerPublisher
- Parameters:
name - The channel namelevel - The levelmessage - The message to be displayed.