Client write log

Hi In server can use =>CCO.Utilities.WriteDebug("DebugFile","test");  to write log. I want write log in client but client can use what?  
Parents
  • Hello, If you're trying to log to a file from a Client method, the easiest way would probably be to create a server-side method that is just responsible for logging messages like the one below.
    string message = this.getProperty("message");
    string fileName = this.getProperty("file_name");
    CCO.Utilities.WriteDebug(fileName, message);
    return this;
    You can then call this server method from your client methods with a line like below. var result = aras.applyMethod("LogMessage", "<message>Action completed successfully</message><file_name>test.log</file_name>"); Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, If you're trying to log to a file from a Client method, the easiest way would probably be to create a server-side method that is just responsible for logging messages like the one below.
    string message = this.getProperty("message");
    string fileName = this.getProperty("file_name");
    CCO.Utilities.WriteDebug(fileName, message);
    return this;
    You can then call this server method from your client methods with a line like below. var result = aras.applyMethod("LogMessage", "<message>Action completed successfully</message><file_name>test.log</file_name>"); Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data