org.apache.commons.logging.impl
public class LogKitLogger extends Object implements Log, Serializable
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 Logger | logger Logging goes to this LogKit logger |
protected String | name Name of this logger |
Constructor Summary | |
---|---|
LogKitLogger(String name)
Construct LogKitLogger which wraps the LogKit
logger with given name.
|
Method Summary | |
---|---|
void | debug(Object message)
Logs a message with org.apache.log.Priority.DEBUG .
|
void | debug(Object message, Throwable t)
Logs a message with org.apache.log.Priority.DEBUG .
|
void | error(Object message)
Logs a message with org.apache.log.Priority.ERROR .
|
void | error(Object message, Throwable t)
Logs a message with org.apache.log.Priority.ERROR .
|
void | fatal(Object message)
Logs a message with org.apache.log.Priority.FATAL_ERROR .
|
void | fatal(Object message, Throwable t)
Logs a message with org.apache.log.Priority.FATAL_ERROR .
|
Logger | getLogger() Return the underlying Logger we are using. |
void | info(Object message)
Logs a message with org.apache.log.Priority.INFO .
|
void | info(Object message, 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(Object message)
Logs a message with org.apache.log.Priority.DEBUG .
|
void | trace(Object message, Throwable t)
Logs a message with org.apache.log.Priority.DEBUG .
|
void | warn(Object message)
Logs a message with org.apache.log.Priority.WARN .
|
void | warn(Object message, Throwable t)
Logs a message with org.apache.log.Priority.WARN .
|
LogKit
loggerLogKitLogger
which wraps the LogKit
logger with given name.
Parameters: name log name
org.apache.log.Priority.DEBUG
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log.Priority.ERROR
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log.Priority.FATAL_ERROR
.
Parameters: message to log t log this cause
See Also: Log
Return the underlying Logger we are using.
org.apache.log.Priority.INFO
.
Parameters: message to log t log this cause
See Also: Log
LogKit
logger will log messages of priority DEBUG
.LogKit
logger will log messages of priority ERROR
.LogKit
logger will log messages of priority FATAL_ERROR
.LogKit
logger will log messages of priority INFO
.LogKit
logger will log messages of priority DEBUG
.LogKit
logger will log messages of priority WARN
.org.apache.log.Priority.DEBUG
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log.Priority.WARN
.
Parameters: message to log t log this cause
See Also: Log