org.apache.avalon.framework.logger
public final class Jdk14Logger extends Object implements Logger
JDK 1.4 does allow you to have other levels like: CONFIG, FINER, and FINEST. Most projects don't separate out configuration logging from debugging information. Also, we wanted to maintain backwards compatibility as much as possible. Unfortunately, with all the "fineness" details, there is no equivalent to the "error" log level.
Version: $Id: Jdk14Logger.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
Logger | m_logger |
Constructor Summary | |
---|---|
Jdk14Logger(Logger logImpl)
Construct a Logger with specified jdk1.4 logger instance as implementation.
|
Method Summary | |
---|---|
void | debug(String message)
Log a debug message.
|
void | debug(String message, Throwable throwable)
Log a debug message.
|
void | error(String message)
Log a error message.
|
void | error(String message, Throwable throwable)
Log a error message.
|
void | fatalError(String message)
Log a fatalError message.
|
void | fatalError(String message, Throwable throwable)
Log a fatalError message.
|
Logger | getChildLogger(String name)
Create a new child logger.
|
void | info(String message)
Log a info message.
|
void | info(String message, Throwable throwable)
Log a info message.
|
boolean | isDebugEnabled()
Determine if messages of priority "debug" will be logged.
|
boolean | isErrorEnabled()
Determine if messages of priority "error" will be logged.
|
boolean | isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged.
|
boolean | isInfoEnabled()
Determine if messages of priority "info" will be logged.
|
boolean | isWarnEnabled()
Determine if messages of priority "warn" will be logged.
|
void | warn(String message)
Log a warn message.
|
void | warn(String message, Throwable throwable)
Log a warn message.
|
Parameters: logImpl the jdk1.4 logger instance to delegate to
Parameters: message the message
Parameters: message the message throwable the throwable
Parameters: message the message
Parameters: message the message throwable the throwable
Parameters: message the message
Parameters: message the message throwable the throwable
IllegalArgumentException
if name has an empty element name
Parameters: name the subname of this logger
Returns: the new logger
Parameters: message the message
Parameters: message the message throwable the throwable
Returns: true if "debug" messages will be logged
Returns: true if "error" messages will be logged
Returns: true if "fatalError" messages will be logged
Returns: true if "info" messages will be logged
Returns: true if "warn" messages will be logged
Parameters: message the message
Parameters: message the message throwable the throwable