maslab.util
Class ConsoleLoggerPublisher

java.lang.Object
  extended by maslab.util.LoggerPublisher
      extended by 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.


Constructor Summary
ConsoleLoggerPublisher()
          Create a new publisher with a default threshold of verbose.
 
Method Summary
 void publish(java.lang.String name, int level, java.lang.String message)
          Called when data is published.
 
Methods inherited from class maslab.util.LoggerPublisher
publishUnconditional, setGlobalLevel, setLevel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLoggerPublisher

public ConsoleLoggerPublisher()
Create a new publisher with a default threshold of verbose.

Method Detail

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 name
level - The level
message - The message to be displayed.