this-> WriteLog

(Caronte Pcode version 2.0)

Description

void this-> WriteLog (int level, string message, string family);

Write the message in the log file , the level specifies how many information are needed and family specifies which type of the script writes in the log.
Level should be a value between 0 and 4 , all other values will ensure that the function does not write any message in the log file.

Example.

Source:


CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->WriteLog(1,"Log message test ","TEST SCRIPT");

return 0;

}


Out:
Date Time ID Conn Entry Type
2010-04-24 10:07:43 Log message test TEST SCRIPT