|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.logging.impl.Jdk14Logger
public final class Jdk14Logger
Implementation of the org.logicalcobwebs.logging.Log
interfaces that wraps the standard JDK logging mechanisms that were
introduced in the Merlin release (JDK 1.4).
Field Summary | |
---|---|
private java.lang.reflect.Method |
getClassNameMethod
|
private java.lang.reflect.Method |
getMethodNameMethod
|
private java.lang.reflect.Method |
getStackTraceMethod
|
private java.lang.reflect.Method |
isLoggableMethod
|
private java.lang.Object |
levelFINE
|
private java.lang.Object |
levelFINEST
|
private java.lang.Object |
levelINFO
|
private java.lang.Object |
levelSEVERE
|
private java.lang.Object |
levelWARNING
|
private java.lang.Object |
logger
The underlying Logger implementation we are using. |
private java.lang.reflect.Method |
logpExMethod
|
private java.lang.reflect.Method |
logpMethod
|
Constructor Summary | |
---|---|
Jdk14Logger(java.lang.String name)
Construct a named instance of this Logger. |
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Log a message with debug log level. |
void |
debug(java.lang.Object message,
java.lang.Throwable exception)
Log a message and exception with debug log level. |
void |
error(java.lang.Object message)
Log a message with error log level. |
void |
error(java.lang.Object message,
java.lang.Throwable exception)
Log a message and exception with error log level. |
void |
fatal(java.lang.Object message)
Log a message with fatal log level. |
void |
fatal(java.lang.Object message,
java.lang.Throwable exception)
Log a message and exception with fatal log level. |
void |
info(java.lang.Object message)
Log a message with info log level. |
void |
info(java.lang.Object message,
java.lang.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? |
private boolean |
isLoggable(java.lang.Object level)
|
boolean |
isTraceEnabled()
Is tace logging currently enabled? |
boolean |
isWarnEnabled()
Is warning logging currently enabled? |
private void |
log(java.lang.Object level,
java.lang.String msg,
java.lang.Throwable ex)
|
void |
trace(java.lang.Object message)
Log a message with trace log level. |
void |
trace(java.lang.Object message,
java.lang.Throwable exception)
Log a message and exception with trace log level. |
void |
warn(java.lang.Object message)
Log a message with warn log level. |
void |
warn(java.lang.Object message,
java.lang.Throwable exception)
Log a message and exception with warn log level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Object logger
private java.lang.reflect.Method logpMethod
private java.lang.reflect.Method logpExMethod
private java.lang.reflect.Method isLoggableMethod
private java.lang.reflect.Method getStackTraceMethod
private java.lang.reflect.Method getClassNameMethod
private java.lang.reflect.Method getMethodNameMethod
private java.lang.Object levelFINEST
private java.lang.Object levelFINE
private java.lang.Object levelINFO
private java.lang.Object levelWARNING
private java.lang.Object levelSEVERE
Constructor Detail |
---|
public Jdk14Logger(java.lang.String name)
name
- Name of the logger to be constructedMethod Detail |
---|
private void log(java.lang.Object level, java.lang.String msg, java.lang.Throwable ex)
public void debug(java.lang.Object message)
debug
in interface Log
message
- log this messagepublic void debug(java.lang.Object message, java.lang.Throwable exception)
debug
in interface Log
message
- log this messageexception
- log this causepublic void error(java.lang.Object message)
error
in interface Log
message
- log this messagepublic void error(java.lang.Object message, java.lang.Throwable exception)
error
in interface Log
message
- log this messageexception
- log this causepublic void fatal(java.lang.Object message)
fatal
in interface Log
message
- log this messagepublic void fatal(java.lang.Object message, java.lang.Throwable exception)
fatal
in interface Log
message
- log this messageexception
- log this causepublic void info(java.lang.Object message)
info
in interface Log
message
- log this messagepublic void info(java.lang.Object message, java.lang.Throwable exception)
info
in interface Log
message
- log this messageexception
- log this causepublic boolean isDebugEnabled()
isDebugEnabled
in interface Log
public boolean isErrorEnabled()
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
isFatalEnabled
in interface Log
public boolean isInfoEnabled()
isInfoEnabled
in interface Log
public boolean isTraceEnabled()
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
isWarnEnabled
in interface Log
public void trace(java.lang.Object message)
trace
in interface Log
message
- log this messagepublic void trace(java.lang.Object message, java.lang.Throwable exception)
trace
in interface Log
message
- log this messageexception
- log this causepublic void warn(java.lang.Object message)
warn
in interface Log
message
- log this messagepublic void warn(java.lang.Object message, java.lang.Throwable exception)
warn
in interface Log
message
- log this messageexception
- log this causeprivate boolean isLoggable(java.lang.Object level)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |