org.chwf.plugin.defaults
Class DefaultLogger

java.lang.Object
  |
  +--org.chwf.plugin.Logger
        |
        +--org.chwf.plugin.defaults.DefaultLogger

public class DefaultLogger
extends Logger

A default user plugin implementation that uses the Servlet API to log errors and text. It ignores the context class, and uses the Chrysalis-Config.xml file to determine is debugging is active.

Author:
Paul Strack

Fields inherited from class org.chwf.plugin.Logger
LOGGER_ID
 
Constructor Summary
DefaultLogger()
          Constuctor.
 
Method Summary
 void log(java.lang.Class context, java.lang.Object message, java.lang.Throwable ex, boolean debug)
          Log the message using the ServletContext.log() method or System.err, depending on what is available.
 
Methods inherited from class org.chwf.plugin.Logger
debug, debug, getInstance, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogger

public DefaultLogger()
Constuctor.

Method Detail

log

public void log(java.lang.Class context,
                java.lang.Object message,
                java.lang.Throwable ex,
                boolean debug)
Log the message using the ServletContext.log() method or System.err, depending on what is available.

Overrides:
log in class Logger
Parameters:
context - The context class for the log message.
message - The message (string value is logged).
ex - The exception (logs the stack-trace).
debug - True if logged at the debug level.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.