|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.logging.impl.Jdk13LumberjackLogger
Implementation of the org.apache.commons.logging.Log
interface that wraps the standard JDK logging mechanisms that are
available in SourceForge's Lumberjack for JDKs prior to 1.4.
| Field Summary | |
protected static java.util.logging.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 java.util.logging.Logger |
logger
The underlying Logger implementation we are using. |
protected java.lang.String |
name
|
| Constructor Summary | |
Jdk13LumberjackLogger(java.lang.String name)
Construct a named instance of this Logger. |
|
| Method Summary | |
void |
debug(java.lang.Object message)
Logs a message with java.util.logging.Level.FINE. |
void |
debug(java.lang.Object message,
java.lang.Throwable exception)
Logs a message with java.util.logging.Level.FINE. |
void |
error(java.lang.Object message)
Logs a message with java.util.logging.Level.SEVERE. |
void |
error(java.lang.Object message,
java.lang.Throwable exception)
Logs a message with java.util.logging.Level.SEVERE. |
void |
fatal(java.lang.Object message)
Logs a message with java.util.logging.Level.SEVERE. |
void |
fatal(java.lang.Object message,
java.lang.Throwable exception)
Logs a message with java.util.logging.Level.SEVERE. |
java.util.logging.Logger |
getLogger()
Return the native Logger instance we are using. |
void |
info(java.lang.Object message)
Logs a message with java.util.logging.Level.INFO. |
void |
info(java.lang.Object message,
java.lang.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(java.lang.Object message)
Logs a message with java.util.logging.Level.FINEST. |
void |
trace(java.lang.Object message,
java.lang.Throwable exception)
Logs a message with java.util.logging.Level.FINEST. |
void |
warn(java.lang.Object message)
Logs a message with java.util.logging.Level.WARNING. |
void |
warn(java.lang.Object message,
java.lang.Throwable exception)
Logs a message with java.util.logging.Level.WARNING. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient java.util.logging.Logger logger
protected java.lang.String name
protected static final java.util.logging.Level dummyLevel
| Constructor Detail |
public Jdk13LumberjackLogger(java.lang.String name)
name - Name of the logger to be constructed| Method Detail |
public void debug(java.lang.Object message)
java.util.logging.Level.FINE.
debug in interface Logmessage - to logLog.debug(Object)
public void debug(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.FINE.
debug in interface Logmessage - to logexception - log this causeLog.debug(Object, Throwable)public void error(java.lang.Object message)
java.util.logging.Level.SEVERE.
error in interface Logmessage - to logLog.error(Object)
public void error(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.SEVERE.
error in interface Logmessage - to logexception - log this causeLog.error(Object, Throwable)public void fatal(java.lang.Object message)
java.util.logging.Level.SEVERE.
fatal in interface Logmessage - to logLog.fatal(Object)
public void fatal(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.SEVERE.
fatal in interface Logmessage - to logexception - log this causeLog.fatal(Object, Throwable)public java.util.logging.Logger getLogger()
public void info(java.lang.Object message)
java.util.logging.Level.INFO.
info in interface Logmessage - to logLog.info(Object)
public void info(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.INFO.
info in interface Logmessage - to logexception - log this causeLog.info(Object, Throwable)public boolean isDebugEnabled()
isDebugEnabled in interface Logpublic boolean isErrorEnabled()
isErrorEnabled in interface Logpublic boolean isFatalEnabled()
isFatalEnabled in interface Logpublic boolean isInfoEnabled()
isInfoEnabled in interface Logpublic boolean isTraceEnabled()
isTraceEnabled in interface Logpublic boolean isWarnEnabled()
isWarnEnabled in interface Logpublic void trace(java.lang.Object message)
java.util.logging.Level.FINEST.
trace in interface Logmessage - to logLog.trace(Object)
public void trace(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.FINEST.
trace in interface Logmessage - to logexception - log this causeLog.trace(Object, Throwable)public void warn(java.lang.Object message)
java.util.logging.Level.WARNING.
warn in interface Logmessage - to logLog.warn(Object)
public void warn(java.lang.Object message,
java.lang.Throwable exception)
java.util.logging.Level.WARNING.
warn in interface Logmessage - to logexception - log this causeLog.warn(Object, Throwable)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||