I’m moving a lot of my automation from workflow to server-scripts due to different reasons out of the scope of this topic … so, in workflow, we have a Session page in the admin which tells us if the workflow has ran and completed or failed with the error message.
How can I achieve such proper monitoring/logging for server-scripts?
I’ve written a server-script that runs every two hours, the script basically tries to find some related record in a module. when the script finds some related records, it just prints them to the console(just information to the business people).
In another case, I have a script that runs every 4 hours, and it updates some records.
the script logs to the console what fields have changed and updated. so it’s like auditing but it’s less important.
in general, I can over-engineer a solution for seeing these logs, or just hock it to a Slack channel. but I wonder how you guys approach this? and what do I mess here?
As far as I recall we only ever used sentry to report errors in regards to them.
There are probably some tools that are used to collect/inspect container logs so I would suggest you look there.