โ09-05-2022 09:47 AM
Hey Everyone,
Can anyone guide me on how to implement the logger mechanism in Workato?
I have used Logger By Workato. Now my end goal is to maintain all these logs with every job execution so that I can identify errors for par jobs.
โ09-05-2022 09:50 AM
It is better to use Handle Errors than logger for error inspection.
โ09-05-2022 10:00 AM
I have used Handle Errors to catch unexpected errors but I need a logger as well.
โ09-05-2022 10:12 AM
If I understood correctly you would want to identify and count what errors occur and how many times they do?
On error, you could call the same function and pass parameters into it from the recipe itself. Within the function you could use a lookup table of Workato (although limited in rows and columns) or use a connected SQL server to put your logging details.
Also there is the Autonomous Operations Framework by Workato that has more or less the same goal, monitoring issues in every recipe and taking actions where needed. https://academy.workato.com/autonomous-operations-framework
I hope my interpretation was correct and helps you out ๐
โ09-05-2022 10:22 AM
Try using Notes for each step where it will be useful to pick up the errors in the steps