|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogMgr
Log Manager.
This class is used to defines logger that then delegates to the JDK implementation. Initially (pre JDK 1.4) they were designed to log to different APIs (LOG4J...). Now, they also propose an easier to use API particularly through the use of String formatter using parameters.
Field Summary | |
---|---|
static int |
LOG_ERROR_LEVEL
|
static int |
LOG_INFO_LEVEL
|
static int |
LOG_TRACEDEBUG_LEVEL
|
static int |
LOG_TRACEENTRY_LEVEL
|
static int |
LOG_TRACEENTRYEXIT_LEVEL
|
static int |
LOG_TRACEEVENT_LEVEL
|
static int |
LOG_TRACEEXIT_LEVEL
|
static int |
LOG_WARN_LEVEL
|
Method Summary | |
---|---|
void |
error(java.lang.String msg,
java.lang.Object... parameters)
Log an error string. |
void |
error(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log an error string. |
void |
errorp(java.lang.Object clazz,
java.lang.String method,
java.lang.String msg,
java.lang.Object... parameters)
Log an error string. |
void |
errorp(java.lang.Object clazz,
java.lang.String method,
java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log an error string. |
java.lang.String |
getDescription()
Get the logger description. |
java.util.logging.Logger |
getLogger()
Get the underlying Java logger, if any. |
void |
info(java.lang.String msg,
java.lang.Object... parameters)
Log an information string. |
void |
info(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log an information string. |
void |
infop(java.lang.Object clazz,
java.lang.String method,
java.lang.String msg,
java.lang.Object... parameters)
Log an information string. |
void |
infop(java.lang.Object clazz,
java.lang.String method,
java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log an information string. |
boolean |
isErrorEnabled()
Returns whether error level is enabled. |
boolean |
isInfoEnabled()
Returns whether info level is enabled. |
boolean |
isTraceDebugEnabled()
Returns whether traceDebug level is enables |
boolean |
isTraceEntryExitEnabled()
Returns whether traceEntryExit level is enables |
boolean |
isTraceEventEnabled()
Returns whether traceEvent level is enables |
boolean |
isWarnEnabled()
Returns whether warning level is enabled. |
void |
setLogLevel(int newLevel)
Sets the Level for the Logger. |
void |
traceDebug(java.lang.String msg,
java.lang.Object... parameters)
Trace an event for debug (Level=FINEST). |
void |
traceDebug(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event for debug (Level=FINEST). |
void |
traceDebugp(java.lang.Object clazz,
java.lang.String methodName,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event for debug (Level=FINEST). |
void |
traceDebugp(java.lang.Object clazz,
java.lang.String methodName,
java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event for debug (Level=FINEST). |
void |
traceEntry(java.lang.Object clazz,
java.lang.String methodName)
Trace when a method is entered. |
void |
traceEntry(java.lang.Object clazz,
java.lang.String methodName,
java.lang.Object... parameters)
Trace when a method is entered. |
void |
traceEvent(java.lang.String msg,
java.lang.Object... parameters)
Trace an event (Level=FINE). |
void |
traceEvent(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event (Level=FINE). |
void |
traceEventp(java.lang.Object clazz,
java.lang.String method,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event (Level=FINE). |
void |
traceEventp(java.lang.Object clazz,
java.lang.String method,
java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Trace an event (Level=FINE). |
void |
traceExit(java.lang.Object clazz,
java.lang.String methodName)
Trace when a method is exited. |
void |
traceExit(java.lang.Object clazz,
java.lang.String methodName,
java.lang.Object ret)
Trace when a method is exited. |
void |
warn(java.lang.String msg,
java.lang.Object... parameters)
Log a warning string. |
void |
warn(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log a warning string. |
void |
warnp(java.lang.Object clazz,
java.lang.String method,
java.lang.String msg,
java.lang.Object... parameters)
Log a warning string. |
void |
warnp(java.lang.Object clazz,
java.lang.String method,
java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
Log a warning string. |
Field Detail |
---|
static final int LOG_ERROR_LEVEL
static final int LOG_WARN_LEVEL
static final int LOG_INFO_LEVEL
static final int LOG_TRACEDEBUG_LEVEL
static final int LOG_TRACEEVENT_LEVEL
static final int LOG_TRACEENTRY_LEVEL
static final int LOG_TRACEEXIT_LEVEL
static final int LOG_TRACEENTRYEXIT_LEVEL
Method Detail |
---|
java.lang.String getDescription()
boolean isTraceDebugEnabled()
boolean isTraceEntryExitEnabled()
boolean isTraceEventEnabled()
boolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
void setLogLevel(int newLevel)
newLevel
- java.util.logging.Logger getLogger()
void info(java.lang.String msg, java.lang.Object... parameters)
msg
- the message to logparameters
- the parameters used to format the messagevoid info(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
t
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid infop(java.lang.Object clazz, java.lang.String method, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namemsg
- the message to logparameters
- the parameters used to format the messagevoid infop(java.lang.Object clazz, java.lang.String method, java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namet
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid warn(java.lang.String msg, java.lang.Object... parameters)
msg
- the message to logparameters
- the parameters used to format the messagevoid warn(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
t
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid warnp(java.lang.Object clazz, java.lang.String method, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namemsg
- the message to logparameters
- the parameters used to format the messagevoid warnp(java.lang.Object clazz, java.lang.String method, java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namet
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid error(java.lang.String msg, java.lang.Object... parameters)
msg
- the message to logparameters
- the parameters used to format the messagevoid error(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
t
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid errorp(java.lang.Object clazz, java.lang.String method, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namemsg
- the message to logparameters
- the parameters used to format the messagevoid errorp(java.lang.Object clazz, java.lang.String method, java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namet
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid traceEvent(java.lang.String msg, java.lang.Object... parameters)
msg
- the message to logparameters
- the parameters used to format the messagevoid traceEvent(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
t
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid traceEventp(java.lang.Object clazz, java.lang.String method, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namemsg
- the message to logparameters
- the parameters used to format the messagevoid traceEventp(java.lang.Object clazz, java.lang.String method, java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethod
- the method namet
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid traceDebug(java.lang.String msg, java.lang.Object... parameters)
msg
- the message to logparameters
- the parameters used to format the messagevoid traceDebug(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
t
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid traceDebugp(java.lang.Object clazz, java.lang.String methodName, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethodName
- the method namemsg
- the message to logparameters
- the parameters used to format the messagevoid traceDebugp(java.lang.Object clazz, java.lang.String methodName, java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
clazz
- the object classmethodName
- the method namet
- the exception to logmsg
- the message to logparameters
- the parameters used to format the messagevoid traceEntry(java.lang.Object clazz, java.lang.String methodName)
clazz
- the object classmethodName
- the method namevoid traceEntry(java.lang.Object clazz, java.lang.String methodName, java.lang.Object... parameters)
clazz
- the object classmethodName
- the method nameparameters
- the parameters passed to the method when invokedvoid traceExit(java.lang.Object clazz, java.lang.String methodName)
clazz
- the object classmethodName
- the method namevoid traceExit(java.lang.Object clazz, java.lang.String methodName, java.lang.Object ret)
clazz
- the object classmethodName
- the method nameObject
- the value being returned by the method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |