Where does gs.print output go?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2014 11:49 AM
Hi ServiceNow Community Developers,
In a script include if I put gs.log statement I can go to Script Log Statements to see my output and that works fine. I am currently looking at a script include that has gs.print statements and after running it I can't find the output. Any idea where can I go to look at the output from the gs.print statement. Please advise.
Thanks,
Johannes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2014 12:43 PM
Typically you would only see gs.print display if you were running as a background script where you could actually see the feedback from the script being run. However, if you actually download the log file (System Logs > Node Log File Download) you would be able to see the results of gs.print statements there as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2024 12:21 PM
I was not able to see the gs.print() outputs of a script executed using the "Scripts - Background" tool when I searched a Node Log File Download. Perhaps I was doing it wrong - but I thought I should provide some feedback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2014 01:23 PM
gs.print is usually used to test your scripts/execute a one time script by running it from System Definition > Scripts Background.
gs.log is more commonly used in your other scripts like script include, business rules etc. where you want to make a log or debug a code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2015 01:00 PM
I am not seeing any of my gs.log statements that I have entered into my client UI action. How can I debug this UI action using gs.log || gs.print please?