setDebug
setDebug(String sessionID, boolean debug)
The setDebug method enables you to set the logging verbosity level for all code paths for the session.
*
sessionID-a string which identifies the session ID.
*
debug-a boolean which enables or disables debug information. Valid values are true or false. If true, Interact logs debug information to the runtime server log.
Return value
The runtime server responds to setDebug with a Response object with the following attributes populated:
*
*
*
*
Example
The following example shows changing the debug level of the session.
sessionId is the same string to identify the session used by the startSession call which started this session.
boolean newDebugFlag=false;
/** make the call */
response = api.setDebug(sessionId, newDebugFlag);

/** Process the response appropriately */
// check if response is successful or not
if(response.getStatusCode() == Response.STATUS_SUCCESS)
{
System.out.println("setDebug call processed with no warnings or errors");
}
else if(response.getStatusCode() == Response.STATUS_WARNING)
{
System.out.println("setDebug call processed with a warning");
}
else
{
System.out.println("setDebug call processed with an error");
}

// For any non-successes, there should be advisory messages explaining why
if(response.getStatusCode() != Response.STATUS_SUCCESS)
printDetailMessageOfWarningOrError("setDebug",
response.getAdvisoryMessages());