public class EDPTrace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text)
This method writes a trace record containing the specified text if
debug tracing for the
specified logger is enabled. |
static void |
debug(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text,
java.lang.Object parm)
This method writes a trace record containing the specified text and parameters if
debug
tracing for the specified logger is enabled. |
static void |
debug(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text,
java.lang.Object[] parms)
This method writes a trace record containing the specified text and parameters if
debug
tracing for the specified logger is enabled. |
static void |
entry(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName)
This method writes a trace method entry record if
entryExit tracing for the specified
logger is enabled. |
static void |
entry(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.Object parm)
This method writes a trace method entry record if
entryExit tracing for the specified
logger is enabled. |
static void |
entry(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] parms)
This method writes a trace method entry record if
entryExit tracing for the specified
logger is enabled. |
static void |
event(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text)
This method writes a trace record containing the specified text if any tracing is enabled for
the specified logger.
|
static void |
event(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text,
java.lang.Object[] parms)
This method writes a trace record containing the specified text and parameters if any tracing is
enabled for the specified logger.
|
static void |
exception(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.Throwable t)
This method writes a trace record containing the specified exception if any tracing is enabled
for the specified logger.
|
static void |
exit(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName)
This method writes a trace method exit record if
entryExit tracing for the specified logger
is enabled. |
static void |
exit(java.lang.String loggerName,
java.lang.String className,
java.lang.String methodName,
java.lang.Object retValue)
This method writes a trace method exit record containing the specified return value if
entryExit tracing for the specified logger is enabled. |
static com.ibm.ras.RASTraceLogger |
getTraceLogger(int loggerIndex)
This method returns the RAS trace logger object associated with the specified index value.
|
static com.ibm.ras.RASTraceLogger |
getTraceLogger(java.lang.String loggerName)
This method returns the RAS trace logger object for the specified component
|
static com.ibm.ras.RASTraceLogger |
getTraceLogger(java.lang.String loggerName,
int loggerIndex)
This method returns the RAS trace logger object for the specified component name.
|
static boolean |
isTracing(int loggerIndex)
This method indicates whether the trace logger is currently enabled to trace records.
|
static boolean |
isTracing(java.lang.String loggerName)
This method indicates whether the trace logger is currently enabled to trace records.
|
public static final java.lang.String COPYRIGHT
public static final com.ibm.ras.RASTraceLogger getTraceLogger(java.lang.String loggerName)
loggerName
- The component that identifies the trace loggerpublic static final com.ibm.ras.RASTraceLogger getTraceLogger(java.lang.String loggerName, int loggerIndex)
loggerName
- The component that identifies the trace loggerloggerIndex
- The index value to be associated with the specified name.public static final com.ibm.ras.RASTraceLogger getTraceLogger(int loggerIndex)
loggerIndex
- The component that has previously been associated with a trace logger.public static final boolean isTracing(java.lang.String loggerName)
if (isTracing(LOGGER_NAME)) WASTrace.debug(LOGGER_NAME,...);This will improve the performance of the system since the arguments of the
debug(...)
method will not be evaluated when tracing is disabled.loggerName
- The unique name for the trace loggerpublic static final boolean isTracing(int loggerIndex)
if (isTracing(LOGGER_INDEX)) WASTrace.debug(LOGGER_NAME,...);This will improve the performance of the system since the arguments of the
debug(...)
method will not be evaluated when tracing is disabled.loggerIndex
- The component that has previously been associated with a trace logger.public static final void debug(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.String text)
debug
tracing for the
specified logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodtext
- The text to be written to the trace recordpublic static final void debug(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.String text, java.lang.Object parm)
debug
tracing for the specified logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodtext
- The text to be written to the trace recordparm
- The data to be written to the trace record.public static final void debug(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.String text, java.lang.Object[] parms)
debug
tracing for the specified logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodtext
- The to be written to the trace recordparms
- The data to be written to the trace record. Each object in the array should
respond appropriately to the toString() method.public static final void entry(java.lang.String loggerName, java.lang.String className, java.lang.String methodName)
entryExit
tracing for the specified
logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodpublic static final void entry(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.Object parm)
entryExit
tracing for the specified
logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodparm
- The data to be written to the trace recordpublic static final void entry(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
entryExit
tracing for the specified
logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodparms
- The data to be written to the trace recordpublic static final void event(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.String text)
loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodtext
- The text to be written to the trace recordpublic static final void event(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.String text, java.lang.Object[] parms)
loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodtext
- The text to be written to the trace recordparms
- The data to be written to the trace record. Each object in the array should
respond appropriately to the toString() method.public static final void exception(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.Throwable t)
loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodt
- The Throwable to report in the trace logpublic static final void exit(java.lang.String loggerName, java.lang.String className, java.lang.String methodName)
entryExit
tracing for the specified logger
is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodpublic static final void exit(java.lang.String loggerName, java.lang.String className, java.lang.String methodName, java.lang.Object retValue)
entryExit
tracing for the specified logger is enabled.loggerName
- The unique name for the trace loggerclassName
- The name of the calling classmethodName
- The name of the calling methodretValue
- The value to be returned by the calling method