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).
Field Summary | |
---|---|
protected static Level | dummyLevel
This member variable simply ensures that any attempt to initialise
this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
|
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)
Logs a message with java.util.logging.Level.FINE .
|
void | debug(Object message, Throwable exception)
Logs a message with java.util.logging.Level.FINE .
|
void | error(Object message)
Logs a message with java.util.logging.Level.SEVERE .
|
void | error(Object message, Throwable exception)
Logs a message with java.util.logging.Level.SEVERE .
|
void | fatal(Object message)
Logs a message with java.util.logging.Level.SEVERE .
|
void | fatal(Object message, Throwable exception)
Logs a message with java.util.logging.Level.SEVERE .
|
Logger | getLogger()
Return the native Logger instance we are using. |
void | info(Object message)
Logs a message with java.util.logging.Level.INFO .
|
void | info(Object message, Throwable exception)
Logs a message with java.util.logging.Level.INFO .
|
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 | trace(Object message)
Logs a message with java.util.logging.Level.FINEST .
|
void | trace(Object message, Throwable exception)
Logs a message with java.util.logging.Level.FINEST .
|
void | warn(Object message)
Logs a message with java.util.logging.Level.WARNING .
|
void | warn(Object message, Throwable exception)
Logs a message with java.util.logging.Level.WARNING .
|
Parameters: name Name of the logger to be constructed
java.util.logging.Level.FINE
.
Parameters: message to log exception log this cause
See Also: Log
java.util.logging.Level.SEVERE
.
Parameters: message to log exception log this cause
See Also: Log
java.util.logging.Level.SEVERE
.
Parameters: message to log exception log this cause
See Also: Log
java.util.logging.Level.INFO
.
Parameters: message to log exception log this cause
See Also: Log
java.util.logging.Level.FINEST
.
Parameters: message to log exception log this cause
See Also: Log
java.util.logging.Level.WARNING
.
Parameters: message to log exception log this cause
See Also: Log