|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.logging.impl.LogKitLogger
Implementation of org.apache.commons.logging.Log
that wraps the avalon-logkit
logging system. Configuration of LogKit is left to the user.
LogKit accepts only String messages.
Therefore, this implementation converts object messages into strings
by called their toString() method before logging them.
| Field Summary | |
protected org.apache.log.Logger |
logger
Logging goes to this LogKit logger |
protected java.lang.String |
name
Name of this logger |
| Constructor Summary | |
LogKitLogger(java.lang.String name)
Construct LogKitLogger which wraps the LogKit
logger with given name. |
|
| Method Summary | |
void |
debug(java.lang.Object message)
Logs a message with org.apache.log.Priority.DEBUG. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.DEBUG. |
void |
error(java.lang.Object message)
Logs a message with org.apache.log.Priority.ERROR. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.ERROR. |
void |
fatal(java.lang.Object message)
Logs a message with org.apache.log.Priority.FATAL_ERROR. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.FATAL_ERROR. |
org.apache.log.Logger |
getLogger()
Return the underlying Logger we are using. |
void |
info(java.lang.Object message)
Logs a message with org.apache.log.Priority.INFO. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.INFO. |
boolean |
isDebugEnabled()
Checks whether the LogKit logger will log messages of priority DEBUG. |
boolean |
isErrorEnabled()
Checks whether the LogKit logger will log messages of priority ERROR. |
boolean |
isFatalEnabled()
Checks whether the LogKit logger will log messages of priority FATAL_ERROR. |
boolean |
isInfoEnabled()
Checks whether the LogKit logger will log messages of priority INFO. |
boolean |
isTraceEnabled()
Checks whether the LogKit logger will log messages of priority DEBUG. |
boolean |
isWarnEnabled()
Checks whether the LogKit logger will log messages of priority WARN. |
void |
trace(java.lang.Object message)
Logs a message with org.apache.log.Priority.DEBUG. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.DEBUG. |
void |
warn(java.lang.Object message)
Logs a message with org.apache.log.Priority.WARN. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log.Priority.WARN. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient org.apache.log.Logger logger
LogKit logger
protected java.lang.String name
| Constructor Detail |
public LogKitLogger(java.lang.String name)
LogKitLogger which wraps the LogKit
logger with given name.
name - log name| Method Detail |
public org.apache.log.Logger getLogger()
Return the underlying Logger we are using.
public void trace(java.lang.Object message)
org.apache.log.Priority.DEBUG.
trace in interface Logmessage - to logLog.trace(Object)
public void trace(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.DEBUG.
trace in interface Logmessage - to logt - log this causeLog.trace(Object, Throwable)public void debug(java.lang.Object message)
org.apache.log.Priority.DEBUG.
debug in interface Logmessage - to logLog.debug(Object)
public void debug(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.DEBUG.
debug in interface Logmessage - to logt - log this causeLog.debug(Object, Throwable)public void info(java.lang.Object message)
org.apache.log.Priority.INFO.
info in interface Logmessage - to logLog.info(Object)
public void info(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.INFO.
info in interface Logmessage - to logt - log this causeLog.info(Object, Throwable)public void warn(java.lang.Object message)
org.apache.log.Priority.WARN.
warn in interface Logmessage - to logLog.warn(Object)
public void warn(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.WARN.
warn in interface Logmessage - to logt - log this causeLog.warn(Object, Throwable)public void error(java.lang.Object message)
org.apache.log.Priority.ERROR.
error in interface Logmessage - to logLog.error(Object)
public void error(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.ERROR.
error in interface Logmessage - to logt - log this causeLog.error(Object, Throwable)public void fatal(java.lang.Object message)
org.apache.log.Priority.FATAL_ERROR.
fatal in interface Logmessage - to logLog.fatal(Object)
public void fatal(java.lang.Object message,
java.lang.Throwable t)
org.apache.log.Priority.FATAL_ERROR.
fatal in interface Logmessage - to logt - log this causeLog.fatal(Object, Throwable)public boolean isDebugEnabled()
LogKit logger will log messages of priority DEBUG.
isDebugEnabled in interface Logpublic boolean isErrorEnabled()
LogKit logger will log messages of priority ERROR.
isErrorEnabled in interface Logpublic boolean isFatalEnabled()
LogKit logger will log messages of priority FATAL_ERROR.
isFatalEnabled in interface Logpublic boolean isInfoEnabled()
LogKit logger will log messages of priority INFO.
isInfoEnabled in interface Logpublic boolean isTraceEnabled()
LogKit logger will log messages of priority DEBUG.
isTraceEnabled in interface Logpublic boolean isWarnEnabled()
LogKit logger will log messages of priority WARN.
isWarnEnabled in interface Log
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||