- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 01:51 AM
Hi Experts,
I have the questions about gs.info()?
- what is gs.info()?
- When to use gs.info()?
- when not to use gs.info()?
- Why we should use gs.info()?
- Best practice of coding gs.info()?
That is all question of me. Please explain it to help me.
Best regards,
Solved! Go to Solution.
- 31,451 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 02:04 AM
Hi,
points below
- what is gs.info()? -it is used for logging messages to system logs
- When to use gs.info()? - it is widely used to debug the server side script in ServiceNow and mostly added to check script ran till which point
- when not to use gs.info()? - it should not be used in production instance; adding gs.info() for debugging is fine but remember to remove that before moving to production as it might lead to unnecessary system logs in production instance
- Why we should use gs.info()? - same as point 2
- Best practice of coding gs.info()? - refer below link
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 02:04 AM
Hi,
points below
- what is gs.info()? -it is used for logging messages to system logs
- When to use gs.info()? - it is widely used to debug the server side script in ServiceNow and mostly added to check script ran till which point
- when not to use gs.info()? - it should not be used in production instance; adding gs.info() for debugging is fine but remember to remove that before moving to production as it might lead to unnecessary system logs in production instance
- Why we should use gs.info()? - same as point 2
- Best practice of coding gs.info()? - refer below link
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 02:10 AM
Thank you for marking my response as helpful.
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 02:59 AM
Hi Ankur,
I thank you so much that spend time with me.
But I see still it doesn't completely enough so I mark for you helpful
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2021 11:26 PM
Can you explain in detail what more details are required?
I believe most of the points are explained and few points are having links.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader