|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.authagent.authapi.logger.AbstractLogger
com.rsa.authagent.authapi.logger.AgentDebugger
public class AgentDebugger
Debugger for logging trace messages.
At static initialization, the debugger loads configuration parameters from
the AgentProperties object. If the debugger is
enabled and filters are set, trace messages will be sent to the specified
output destinations.
| Field Summary | |
|---|---|
static int |
DEBUG_ALL
Allows all traces to be logged. |
static int |
DEBUG_ENTRY
Allows method entry traces to be logged. |
static int |
DEBUG_EXIT
Allows method exit traces to be logged. |
static int |
DEBUG_FLOW
Allows control flow traces to be logged. |
static int |
DEBUG_NORMAL
Allows normal traces to be logged. |
| Fields inherited from class com.rsa.authagent.authapi.logger.AbstractLogger |
|---|
LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_OFF, LOG_WARN, RSA_LOG_DEBUG, RSA_LOG_ERROR, RSA_LOG_FATAL, RSA_LOG_INFO, RSA_LOG_OFF, RSA_LOG_WARN |
| Method Summary | |
|---|---|
static void |
addDebugFilter(int newFilter)
Adds a new set of filters to the debugger. |
static void |
addOutput(LoggerOutput output)
|
static void |
clearDebugFilters()
Clears all existing filters in the debugger. |
static void |
enableDebug(boolean enabled)
Enable debug logging. |
static java.lang.String |
formatHex(byte[] buf,
java.lang.String header)
Formats a binary byte array into printable hex string. |
static int |
getDebugFilter()
Returns the current set of debug filters. |
static boolean |
isDebugEnabled()
Checks whether or not the debugger is enabled. |
static void |
loadAgentProperties()
Reloads configuration parameters from the default and System properties. |
static void |
loadAgentProperties(AgentProperties agProps)
|
static void |
removeAllOutputs()
|
static void |
trace(int idMsg)
Logs a trace message specified by an ID. |
static void |
trace(java.lang.String szMsg)
Logs a trace message. |
static void |
traceEntry(java.lang.String szMsg)
Logs a method entry trace message. |
static void |
traceExit(java.lang.String szMsg)
Logs a method exit trace message. |
static void |
traceFlow(java.lang.String szMsg)
Logs a control flow trace message. |
static void |
traceNormal(java.lang.String szMsg)
Logs a normal trace message. |
| Methods inherited from class com.rsa.authagent.authapi.logger.AbstractLogger |
|---|
removeAllOutputs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEBUG_NORMAL
public static final int DEBUG_ENTRY
public static final int DEBUG_EXIT
public static final int DEBUG_FLOW
public static final int DEBUG_ALL
| Method Detail |
|---|
public static boolean isDebugEnabled()
true if the debugger is enabled;
false otherwise.public static void enableDebug(boolean enabled)
enabled - true to enable; false to
disable.public static void addDebugFilter(int newFilter)
clearDebugFilters()first.
newFilter - the new set of filters to be added.DEBUG_ENTRY,
DEBUG_EXIT,
DEBUG_FLOW,
DEBUG_NORMAL,
DEBUG_ALLpublic static int getDebugFilter()
addDebugFilter(int)public static void clearDebugFilters()
public static void addOutput(LoggerOutput output)
AbstractLogger.addOutput(com.rsa.authagent.authapi.logger.LoggerOutput)public static void removeAllOutputs()
AbstractLogger.removeAllOutputs(Logger)
public static java.lang.String formatHex(byte[] buf,
java.lang.String header)
buf - buffer containing the binary data.header - an optional header string (can be null).
public static void trace(java.lang.String szMsg)
szMsg - the message string.public static void traceEntry(java.lang.String szMsg)
szMsg - the message string.public static void traceExit(java.lang.String szMsg)
szMsg - the message string.public static void traceFlow(java.lang.String szMsg)
szMsg - the message string.public static void traceNormal(java.lang.String szMsg)
szMsg - the message string.public static void trace(int idMsg)
idMsg - the message ID.public static void loadAgentProperties()
public static void loadAgentProperties(AgentProperties agProps)
com.rsa.authagent.authapi.logger.AbstractLogger#loadAgentProperties(String)
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||