org.jcrontab.log
Class Log4JLogger

java.lang.Object
  |
  +--org.jcrontab.log.Log4JLogger
All Implemented Interfaces:
Logger

public class Log4JLogger
extends java.lang.Object
implements Logger

This is the Log4jLogger as an example about how to use Log4J to log in Jcrontab

Version:
$Revision: 1.3 $
Author:
$Author: iolalla $

Constructor Summary
Log4JLogger()
           
 
Method Summary
 void debug(java.lang.String message)
          This method reports a debug level message to the log
 void error(java.lang.String message, java.lang.Throwable t)
          This method reports a Exception or Error to the log
 void info(java.lang.String message)
          This method reports a message to the log
 void init()
          This method does the basic initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLogger

public Log4JLogger()
Method Detail

init

public void init()
This method does the basic initialization.

Specified by:
init in interface Logger

info

public void info(java.lang.String message)
This method reports a message to the log

Specified by:
info in interface Logger

error

public void error(java.lang.String message,
                  java.lang.Throwable t)
This method reports a Exception or Error to the log

Specified by:
error in interface Logger

debug

public void debug(java.lang.String message)
This method reports a debug level message to the log

Specified by:
debug in interface Logger