org.apache.commons.logging.impl
public class Jdk14Logger extends Object implements Log, Serializable
Implementation of the org.apache.commons.logging.Log
interface that wraps the standard JDK logging mechanisms that were
introduced in the Merlin release (JDK 1.4).
Version: $Revision: 1.13 $ $Date: 2004/06/06 21:10:21 $
Field Summary | |
---|---|
protected Logger | logger
The underlying Logger implementation we are using. |
protected String | name
The name of the logger we are wrapping. |
Constructor Summary | |
---|---|
Jdk14Logger(String name)
Construct a named instance of this Logger.
|
Method Summary | |
---|---|
void | debug(Object message)
Log a message with debug log level. |
void | debug(Object message, Throwable exception)
Log a message and exception with debug log level. |
void | error(Object message)
Log a message with error log level. |
void | error(Object message, Throwable exception)
Log a message and exception with error log level. |
void | fatal(Object message)
Log a message with fatal log level. |
void | fatal(Object message, Throwable exception)
Log a message and exception with fatal log level. |
Logger | getLogger()
Return the native Logger instance we are using. |
void | info(Object message)
Log a message with info log level. |
void | info(Object message, Throwable exception)
Log a message and exception with info log level. |
boolean | isDebugEnabled()
Is debug logging currently enabled? |
boolean | isErrorEnabled()
Is error logging currently enabled? |
boolean | isFatalEnabled()
Is fatal logging currently enabled? |
boolean | isInfoEnabled()
Is info logging currently enabled? |
boolean | isTraceEnabled()
Is trace logging currently enabled? |
boolean | isWarnEnabled()
Is warn logging currently enabled? |
void | log(Level level, String msg, Throwable ex) |
void | trace(Object message)
Log a message with trace log level. |
void | trace(Object message, Throwable exception)
Log a message and exception with trace log level. |
void | warn(Object message)
Log a message with warn log level. |
void | warn(Object message, Throwable exception)
Log a message and exception with warn log level. |
Parameters: name Name of the logger to be constructed