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.
Version: $Id: LogKitLogger.java,v 1.9 2004/06/01 19:56:46 rdonkin Exp $
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)
Log message to LogKit logger with DEBUG priority. |
void | debug(Object message, Throwable t)
Log error to LogKit logger with DEBUG priority. |
void | error(Object message)
Log message to LogKit logger with ERROR priority. |
void | error(Object message, Throwable t)
Log error to LogKit logger with ERROR priority. |
void | fatal(Object message)
Log message to LogKit logger with FATAL_ERROR priority. |
void | fatal(Object message, Throwable t)
Log error to LogKit logger with FATAL_ERROR priority. |
Logger | getLogger() Return the underlying Logger we are using. |
void | info(Object message)
Log message to LogKit logger with INFO priority. |
void | info(Object message, 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(Object message)
Log message to LogKit logger with DEBUG priority. |
void | trace(Object message, Throwable t)
Log error to LogKit logger with DEBUG priority. |
void | warn(Object message)
Log message to LogKit logger with WARN priority. |
void | warn(Object message, Throwable t)
Log error to LogKit logger with WARN priority. |
LogKit
loggerLogKitLogger
which wraps the LogKit
logger with given name.
Parameters: name log name
LogKit
logger with DEBUG
priority.LogKit
logger with DEBUG
priority.LogKit
logger with ERROR
priority.LogKit
logger with ERROR
priority.LogKit
logger with FATAL_ERROR
priority.LogKit
logger with FATAL_ERROR
priority.Return the underlying Logger we are using.
LogKit
logger with INFO
priority.LogKit
logger with INFO
priority.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
.LogKit
logger with DEBUG
priority.LogKit
logger with DEBUG
priority.LogKit
logger with WARN
priority.LogKit
logger with WARN
priority.