How do add logs to my custom script to check for errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 06:52 AM
Hi
I have a custom script which is causing issues but I would like to add logs to it to confirm what exactly in that script is causing the problem. How can this be done?
Is there any other way to check this without logs?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 07:05 AM
Hi,
For general information about logging, see this documentation page:
If you post your script here, we can maybe also give you some hints.
Best regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 07:10 AM
@thrsdy1512 You can use gs.log() in the global scope or gs.info() in the scoped application after different lines to check where exactly your script is breaking.
Also, would it be possible to share your script here. We may be able to help you out in finding the the issue with your script.