- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2019 03:07 AM
what is the difference between gs.print and gs.debug? and when we can use this ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2019 03:19 AM
Hi there,
gs.print / gs.log is old and not scope proof. Use gs.info / gs.error / gs.warn / gs.debug instead.
Here's an image which might help:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2019 03:18 AM
Hi Rajesh ,
gs.debug () :
Logs informational events that are useful for debugging an application. Setting the log level for an application to debug generates info, warn, error, and debug messages.
gs.print():
Logs informational messages that describe the progress of the application. Setting the log level for an application to info generates info, warn, and error messages, but does not generate debug messages.
gs.print() will write an entry to the Log File, writes a message to system log only.
gs.print() takes 1 argument, message.
If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!
Regards,
Apeksha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2019 03:19 AM
Hi there,
gs.print / gs.log is old and not scope proof. Use gs.info / gs.error / gs.warn / gs.debug instead.
Here's an image which might help:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field