public final class LoggerHelpers
extends java.lang.Object
| Constructor and Description |
|---|
LoggerHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static long |
traceEnter(Logger log,
java.lang.String method,
java.lang.Object... args)
Traces the fact that a method entry has occurred.
|
static long |
traceEnterWithContext(Logger log,
java.lang.String context,
java.lang.String method,
java.lang.Object... args)
Traces the fact that a method entry has occurred.
|
static void |
traceLeave(Logger log,
java.lang.String method,
long traceEnterId,
java.lang.Object... args)
Traces the fact that a method has exited normally.
|
static void |
traceLeave(Logger log,
java.lang.String context,
java.lang.String method,
long traceEnterId,
java.lang.Object... args)
Traces the fact that a method has exited normally.
|
public static long traceEnter(Logger log,
java.lang.String method,
java.lang.Object... args)
log - The Logger to log to.method - The name of the method.args - The arguments to the method.public static long traceEnterWithContext(Logger log,
java.lang.String context,
java.lang.String method,
java.lang.Object... args)
log - The Logger to log to.context - Identifying context for the operation. For example, this can be used to differentiate between
different instances of the same object.method - The name of the method.args - The arguments to the method.public static void traceLeave(Logger log,
java.lang.String method,
long traceEnterId,
java.lang.Object... args)
log - The Logger to log to.method - The name of the method.traceEnterId - The correlation Id obtained from a traceEnter call.args - Additional arguments to log.public static void traceLeave(Logger log,
java.lang.String context,
java.lang.String method,
long traceEnterId,
java.lang.Object... args)
log - The Logger to log to.context - Identifying context for the operation. For example, this can be used to differentiate between
different instances of the same object.method - The name of the method.traceEnterId - The correlation Id obtained from a traceEnter call.args - Additional arguments to log.