setDebug
setDebug(String sessionID, boolean debug)
setDebug 메소드를 사용하여 세션의 모든 코드 경로에 대해 로깅 상세 레벨을 설정할 수 있습니다.
*
sessionID - 세션 ID를 식별하는 문자열입니다.
*
debug - 디버그 정보를 활성화하거나 비활성화하는 부울입니다. 유효한 값은 true 또는 false입니다. true이면, Interact가 런타임 서버 로그에 디버그 정보를 로그합니다.
리턴 값
런타임 서버는 다음 속성이 채워진 Response 오브젝트로 setDebug에 응답합니다.
*
*
*
*
예제
다음 예제는 세션 디버그 레벨 변경을 표시합니다.
sessionId는 이 세션을 시작한 startSession 호출에서 사용되는 세션을 식별할 동일한 문자열입니다.
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());