Example: lr.debug_message

The following example issues the appropriate debug message when the login fails.

int status = login("username","password");

if (status == lr.FAIL) {

string strOutputMsg="Error: Unable to login to server";

lr.debug_message(lr.MSG_CLASS_FULL_TRACE, strOutputMsg);

lr.debug_message(lr.MSG_CLASS_EXTENDED_LOG, strOutputMsg);

}

 

public int login(string username, string password)

{

//emulate failed login

return lr.FAIL;

}