org.jmonit.log
Class CommonsLoggingLogger

java.lang.Object
  extended by org.jmonit.log.Log
      extended by org.jmonit.log.CommonsLoggingLogger

public class CommonsLoggingLogger
extends Log

Logger implementation based on jakarta commons-logging.

Please notice commons-logging configuration is out of scope of jMonit runtime discovery. If you get troubles using commons-logging, read the doc at {http://jakarta.apache.org/commons/logging} and/or use the diagnostic mode of commons-logging 1.1 to check for classloaders conflicts.

Author:
Nicolas De Loof

Constructor Summary
CommonsLoggingLogger(java.lang.Class caller)
          Constructor
 
Method Summary
 void debug(java.lang.String message)
          
 void error(java.lang.String message)
          
 void error(java.lang.String message, java.lang.Throwable t)
          
 void info(java.lang.String message)
          
 void info(java.lang.String message, java.lang.Throwable t)
          
 boolean isDebugEnabled()
          
 void warn(java.lang.String message)
          
 void warn(java.lang.String message, java.lang.Throwable t)
          
 
Methods inherited from class org.jmonit.log.Log
getLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLoggingLogger

public CommonsLoggingLogger(java.lang.Class caller)
Constructor

Parameters:
caller - target logging class
Method Detail

isDebugEnabled

public boolean isDebugEnabled()

Specified by:
isDebugEnabled in class Log
Returns:
true if debug logs are enabled
See Also:
info.jmonit.logger.Log#isDebugEnabled()

debug

public void debug(java.lang.String message)

Specified by:
debug in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#debug(java.lang.String)

info

public void info(java.lang.String message)

Specified by:
info in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#info(java.lang.String)

info

public void info(java.lang.String message,
                 java.lang.Throwable t)

Specified by:
info in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#info(java.lang.String, Throwable)

error

public void error(java.lang.String message)

Specified by:
error in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#error(java.lang.String)

error

public void error(java.lang.String message,
                  java.lang.Throwable t)

Specified by:
error in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#error(java.lang.String, Throwable)

warn

public void warn(java.lang.String message)

Specified by:
warn in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#warn(java.lang.String)

warn

public void warn(java.lang.String message,
                 java.lang.Throwable t)

Specified by:
warn in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#warn(java.lang.String, Throwable)


Copyright © 2007 Nicolas De Loof. All Rights Reserved.