|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.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)
Log message to LogKit logger with DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with DEBUG priority. |
void |
error(java.lang.Object message)
Log message to LogKit logger with ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with ERROR priority. |
void |
fatal(java.lang.Object message)
Log message to LogKit logger with FATAL_ERROR priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with FATAL_ERROR priority. |
org.apache.log.Logger |
getLogger()
Return the underlying Logger we are using. |
void |
info(java.lang.Object message)
Log message to LogKit logger with INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with INFO priority. |
boolean |
isDebugEnabled()
Check whether the LogKit logger will log messages of priority DEBUG. |
boolean |
isErrorEnabled()
Check whether the LogKit logger will log messages of priority ERROR. |
boolean |
isFatalEnabled()
Check whether the LogKit logger will log messages of priority FATAL_ERROR. |
boolean |
isInfoEnabled()
Check whether the LogKit logger will log messages of priority INFO. |
boolean |
isTraceEnabled()
Check whether the LogKit logger will log messages of priority DEBUG. |
boolean |
isWarnEnabled()
Check whether the LogKit logger will log messages of priority WARN. |
void |
trace(java.lang.Object message)
Log message to LogKit logger with DEBUG priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with DEBUG priority. |
void |
warn(java.lang.Object message)
Log message to LogKit logger with WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with WARN priority. |
| 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)
LogKit logger with DEBUG priority.
trace in interface Logmessage - log this message
public void trace(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with DEBUG priority.
trace in interface Logmessage - log this messaget - log this causepublic void debug(java.lang.Object message)
LogKit logger with DEBUG priority.
debug in interface Logmessage - log this message
public void debug(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with DEBUG priority.
debug in interface Logmessage - log this messaget - log this causepublic void info(java.lang.Object message)
LogKit logger with INFO priority.
info in interface Logmessage - log this message
public void info(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with INFO priority.
info in interface Logmessage - log this messaget - log this causepublic void warn(java.lang.Object message)
LogKit logger with WARN priority.
warn in interface Logmessage - log this message
public void warn(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with WARN priority.
warn in interface Logmessage - log this messaget - log this causepublic void error(java.lang.Object message)
LogKit logger with ERROR priority.
error in interface Logmessage - log this message
public void error(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with ERROR priority.
error in interface Logmessage - log this messaget - log this causepublic void fatal(java.lang.Object message)
LogKit logger with FATAL_ERROR priority.
fatal in interface Logmessage - log this message
public void fatal(java.lang.Object message,
java.lang.Throwable t)
LogKit logger with FATAL_ERROR priority.
fatal in interface Logmessage - log this messaget - log this causepublic 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 | ||||||||||