org.prevayler.foundation.monitor
Class SimpleMonitor

java.lang.Object
  extended by org.prevayler.foundation.monitor.LoggingMonitor
      extended by org.prevayler.foundation.monitor.SimpleMonitor
All Implemented Interfaces:
Monitor

public class SimpleMonitor
extends LoggingMonitor

A Monitor that logs output to a PrintStream (System.out by default).


Constructor Summary
SimpleMonitor()
           
SimpleMonitor(PrintStream stream)
           
 
Method Summary
protected  void error(Class clazz, String message, Exception ex)
           
protected  void info(Class clazz, String message)
           
 
Methods inherited from class org.prevayler.foundation.monitor.LoggingMonitor
isInfoEnabled, notify, notify, notify, notify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMonitor

public SimpleMonitor()

SimpleMonitor

public SimpleMonitor(PrintStream stream)
Parameters:
stream - The stream to be used for logging.
Method Detail

info

protected void info(Class clazz,
                    String message)
Specified by:
info in class LoggingMonitor

error

protected void error(Class clazz,
                     String message,
                     Exception ex)
Specified by:
error in class LoggingMonitor


Copyright © 2001-2013. All Rights Reserved.