public class Trace
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
active()
Turn on the output of trace messages.
|
static void |
deactivate()
Turn off the output of trace messages.
|
static void |
exception(java.lang.Object owner,
java.lang.String method,
java.lang.Throwable exception)
Used to mark that an exception has been caught.
|
static void |
in(java.lang.Object owner,
java.lang.String method,
java.lang.Object... parameters)
Used to mark the start of a method.
|
static void |
message(java.lang.Object owner,
java.lang.String method,
java.lang.String message,
java.lang.Object... inserts)
Used to output an information message.
|
static void |
out(java.lang.Object owner,
java.lang.String method)
Used to mark that a method has returned.
|
static void |
out(java.lang.Object owner,
java.lang.String method,
java.lang.Object returnVal)
Used to mark that a method has returned.
|
static void |
setOutput(java.io.PrintStream out)
Set the location that trace messages should be written to.
|
public static void in(java.lang.Object owner, java.lang.String method, java.lang.Object... parameters)
owner
- The object which owns the method.method
- The name of the method.parameters
- The parameters passed to the method.public static void out(java.lang.Object owner, java.lang.String method)
owner
- The object which owns the method.method
- The name of the method.public static void out(java.lang.Object owner, java.lang.String method, java.lang.Object returnVal)
owner
- The object which owns the method.method
- The name of the method.returnVal
- The value the method is returning.public static void exception(java.lang.Object owner, java.lang.String method, java.lang.Throwable exception)
owner
- The object which is tracing the exception.method
- The name of the method which caught the exception.exception
- The exception that was caught.public static void message(java.lang.Object owner, java.lang.String method, java.lang.String message, java.lang.Object... inserts)
owner
- The object which is tracing the message.method
- The name of the method tracing the message.message
- The message to be traced.inserts
- Any inserts to be put in the traced message.public static void active()
public static void deactivate()
public static void setOutput(java.io.PrintStream out)
out
- The PrintStream to write trace messages to.