org.jmonit.log
Class Log
java.lang.Object
org.jmonit.log.Log
- Direct Known Subclasses:
- CommonsLoggingLogger, ConsoleLogger, Java14Logger, Log4jLogger, NullLogger
public abstract class Log
- extends java.lang.Object
Facade API to any logging framework.
commons-logging provides such an abstraction layer, but introduces some
classloader issues that many user complain. To avoid dependency on this
librairy, this thin layer can wrap commons-logging if no other supported
logging framework is found.
- Author:
- Nicolas De Loof
Constructor Summary |
Log()
|
Method Summary |
abstract void |
debug(java.lang.String message)
|
abstract void |
error(java.lang.String message)
|
abstract void |
error(java.lang.String message,
java.lang.Throwable t)
|
static Log |
getLog(java.lang.Class clazz)
|
abstract void |
info(java.lang.String message)
|
abstract void |
info(java.lang.String message,
java.lang.Throwable t)
|
abstract boolean |
isDebugEnabled()
|
abstract void |
warn(java.lang.String message)
|
abstract void |
warn(java.lang.String message,
java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log
public Log()
getLog
public static Log getLog(java.lang.Class clazz)
isDebugEnabled
public abstract boolean isDebugEnabled()
- Returns:
- true if debug logs are enabled
debug
public abstract void debug(java.lang.String message)
- Parameters:
message
- message to be logged
info
public abstract void info(java.lang.String message)
- Parameters:
message
- message to be logged
info
public abstract void info(java.lang.String message,
java.lang.Throwable t)
- Parameters:
message
- message to be loggedt
- Exception to be logged
warn
public abstract void warn(java.lang.String message)
- Parameters:
message
- message to be logged
warn
public abstract void warn(java.lang.String message,
java.lang.Throwable t)
- Parameters:
message
- message to be loggedt
- Exception to be logged
error
public abstract void error(java.lang.String message)
- Parameters:
message
- message to be logged
error
public abstract void error(java.lang.String message,
java.lang.Throwable t)
- Parameters:
message
- message to be loggedt
- Exception to be logged
Copyright © 2007 Nicolas De Loof. All Rights Reserved.