|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.util.TDiag
public class TDiag
Diagnotics helpers.
Easy to use log utilities.
Constructor Summary | |
---|---|
TDiag()
|
Method Summary | |
---|---|
static void |
console(java.lang.Exception ex)
Method that trace an exception to the console. |
static void |
console(java.lang.Exception ex,
java.lang.String msg,
java.lang.Object... params)
Method that trace an exception to the console. |
static void |
console(java.lang.String msg,
java.lang.Object... params)
Method that trace to the console. |
static void |
decIndent()
|
static void |
exception(java.lang.Throwable t)
Trace an exception to the common logger. |
static void |
exception(java.lang.Throwable t,
java.lang.String msg,
java.lang.Object... parameters)
|
static java.io.PrintStream |
getOutputStream()
|
static java.io.PrintStream |
getSyncObject()
Common synchronization object when tracing to the output stream |
static void |
incIndent()
|
static void |
isEnabled()
Check if the common logger is enabled. |
static void |
trace(java.lang.String msg,
java.lang.Object... parameters)
Trace to the common logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TDiag()
Method Detail |
---|
public static final void console(java.lang.String msg, java.lang.Object... params)
msg
- the message to displayparams
- the parameters used to format the messagepublic static final void console(java.lang.Exception ex)
ex
- the exception to tracepublic static final void console(java.lang.Exception ex, java.lang.String msg, java.lang.Object... params)
ex
- the exception to tracemsg
- the message to displayparams
- the parameters used to format the messagepublic static java.io.PrintStream getSyncObject()
public static final void isEnabled()
public static final void trace(java.lang.String msg, java.lang.Object... parameters)
public static final void incIndent()
public static final void decIndent()
public static final void exception(java.lang.Throwable t)
public static final void exception(java.lang.Throwable t, java.lang.String msg, java.lang.Object... parameters)
public static java.io.PrintStream getOutputStream()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |