Package org.opends.server.loggers
Class DebugTracer
- java.lang.Object
-
- org.opends.server.loggers.DebugTracer
-
public final class DebugTracer extends Object
Class for source-code tracing at the method level. One DebugTracer instance exists for each Java class using tracing. Tracer must be registered with the DebugLogger. Logging is always done at a level basis, with debug log messages exceeding the trace threshold being traced, others being discarded.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enabled()
Indicates if logging is enabled for at least one category in a publisher.void
traceException(String msg, Throwable exception)
Log the provided message and exception.
-
-
-
Method Detail
-
traceException
public void traceException(String msg, Throwable exception)
Log the provided message and exception.- Parameters:
msg
- the messageexception
- the exception caught. May benull
.
-
enabled
public boolean enabled()
Indicates if logging is enabled for at least one category in a publisher.- Returns:
true
if logging is enabled, false otherwise.
-
-