|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.loggers.debug.DebugTracer
public class DebugTracer
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 | |
---|---|
void |
debugCaught(LogLevel level,
java.lang.Throwable ex)
Log an cought exception. |
void |
debugConstructor(LogLevel level,
java.lang.Object... args)
Log an constructor execution event. |
void |
debugData(LogLevel level,
byte[] data)
Log raw data in the form of a byte array. |
void |
debugData(LogLevel level,
java.nio.ByteBuffer buffer)
Log raw data in the form of a ByteBuffer. |
void |
debugError(java.lang.String msg)
Log an arbitrary event at the error level. |
void |
debugError(java.lang.String msg,
java.lang.Object... msgArgs)
Log an arbitrary event at the error level. |
void |
debugInfo(java.lang.String msg)
Log an arbitrary event at the info level. |
void |
debugInfo(java.lang.String msg,
java.lang.Object... msgArgs)
Log an arbitrary event at the info level. |
void |
debugJEAccess(LogLevel level,
com.sleepycat.je.OperationStatus status,
com.sleepycat.je.Database database,
com.sleepycat.je.Transaction txn,
com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data)
Log a JE database access event. |
void |
debugMessage(LogLevel level,
java.lang.String msg)
Log an arbitrary event. |
void |
debugMessage(LogLevel level,
java.lang.String msg,
java.lang.Object... msgArgs)
Log an arbitrary event. |
void |
debugMethodEntry(LogLevel level,
java.lang.Object obj,
java.lang.Object... args)
Log an non static method entry event. |
void |
debugProtocolElement(LogLevel level,
ProtocolElement element)
Log a protocol element. |
void |
debugReturn(LogLevel level,
java.lang.Object ret)
Log a return from a method call event. |
void |
debugStaticMethodEntry(LogLevel level,
java.lang.Object... args)
Log an static method entry event. |
void |
debugThrown(LogLevel level,
java.lang.Throwable ex)
Log an exception thrown from a method. |
void |
debugVerbose(java.lang.String msg)
Log an arbitrary event at the verbose level. |
void |
debugVerbose(java.lang.String msg,
java.lang.Object... msgArgs)
Log an arbitrary event at the verbose level. |
void |
debugWarning(java.lang.String msg)
Log an arbitrary event at the warning level. |
void |
debugWarning(java.lang.String msg,
java.lang.Object... msgArgs)
Log an arbitrary event at the warning level. |
java.lang.String |
getTracedClassName()
Gets the name of the class this tracer traces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void debugConstructor(LogLevel level, java.lang.Object... args)
level
- The level of the message being logged.args
- The arguments passed to the constructor.public void debugMethodEntry(LogLevel level, java.lang.Object obj, java.lang.Object... args)
level
- The level of the message being logged.obj
- The object type instance the method is a member of.args
- The arguments passed to the method.public void debugStaticMethodEntry(LogLevel level, java.lang.Object... args)
level
- The level of the message being logged.args
- The arguments passed to the method.public void debugReturn(LogLevel level, java.lang.Object ret)
level
- The level of the message being logged.ret
- The value being returned from the method.public void debugThrown(LogLevel level, java.lang.Throwable ex)
level
- The level of the message being logged.ex
- The exception being thrown.public void debugVerbose(java.lang.String msg)
msg
- message to format and log.public void debugVerbose(java.lang.String msg, java.lang.Object... msgArgs)
msg
- message to format and log.msgArgs
- arguments to place into the format string.public void debugInfo(java.lang.String msg)
msg
- message to format and log.public void debugInfo(java.lang.String msg, java.lang.Object... msgArgs)
msg
- message to format and log.msgArgs
- arguments to place into the format string.public void debugWarning(java.lang.String msg)
msg
- message to format and log.public void debugWarning(java.lang.String msg, java.lang.Object... msgArgs)
msg
- message to format and log.msgArgs
- arguments to place into the format string.public void debugError(java.lang.String msg)
msg
- message to format and log.public void debugError(java.lang.String msg, java.lang.Object... msgArgs)
msg
- message to format and log.msgArgs
- arguments to place into the format string.public void debugMessage(LogLevel level, java.lang.String msg)
level
- the level of the log message.msg
- message to format and log.public void debugMessage(LogLevel level, java.lang.String msg, java.lang.Object... msgArgs)
level
- the level of the log message.msg
- message to format and log.msgArgs
- arguments to place into the format string.public void debugCaught(LogLevel level, java.lang.Throwable ex)
level
- the level of the log message.ex
- the exception caught.public void debugJEAccess(LogLevel level, com.sleepycat.je.OperationStatus status, com.sleepycat.je.Database database, com.sleepycat.je.Transaction txn, com.sleepycat.je.DatabaseEntry key, com.sleepycat.je.DatabaseEntry data)
level
- the level of the log message.status
- status of the JE operation.database
- the database handle.txn
- transaction handle (may be null).key
- the key to dump.data
- the data to dump.public void debugData(LogLevel level, byte[] data)
level
- the level of the log message.data
- the data to dump.public void debugProtocolElement(LogLevel level, ProtocolElement element)
level
- the level of the log message.element
- the protocol element to dump.public void debugData(LogLevel level, java.nio.ByteBuffer buffer)
level
- the level of the log message.buffer
- the data to dump.public java.lang.String getTracedClassName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |