Hello,
I have written a server method. If any error or exception came in method, I want to add it to logs. Is there any to do the same? If yes please explain how to do it.
Thank you,
Nilesh
Hello,
I have written a server method. If any error or exception came in method, I want to add it to logs. Is there any to do the same? If yes please explain how to do it.
Thank you,
Nilesh
I have written so much stuff in this forum that you can find answers to nearly everything within my account. I should print my posts and sell them as "Secrets of a PLM platform - Angela´s definite guide".
--> community.aras.com/.../is-it-possible-to-use-the-system-event-log-for-logging-custom-events
Hello Nilesh,
You can use try catch block in you method & in catch block you can log (using Aras log method) your exception or error like CCO.Utilities.WriteDebug("logFileName","Error");.
log will generate server temp folder with logFileName
try
{
// your code
}
catch(Exception ex)
{
CCO.Utilities.WriteDebug("logFilename",ex.ToString());
}
return this;.
Regards,
Suhas