org.prevayler.foundation.monitor
Class Log4jMonitor

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

public class Log4jMonitor
extends LoggingMonitor

A Monitor that logs output using Log4j. Loggers are named by fully qualified class name for easy configuration and control over logging output.


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

Constructor Detail

Log4jMonitor

public Log4jMonitor()
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

isInfoEnabled

protected boolean isInfoEnabled(Class clazz)
Description copied from class: LoggingMonitor
default returns true. Override as needed.

Overrides:
isInfoEnabled in class LoggingMonitor


Copyright © 2001-2013. All Rights Reserved.