- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 01:17 AM
can you please tell me any table have the log messages used in jslog() method in client script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 03:48 AM
Hi @sekharksnow ,
You can use alert('<your_message>'); in client scripts.
Please have a look at the below articles for jslog()
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 05:11 AM
why not use alert() or console statements to debug?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 05:24 AM
Hi,
jslog will print messages in browser console.
If you are using Chrome press F12 to open the DevTools. All your messages will be printed under console tab. Make sure you login as Admin in ServiceNow
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 06:06 AM
Hello @sekharksnow jslog simply logs to the browser so there is no permanent record of it on the server. Not sure what your use case is but if you really need to you can create a custom REST endpoint that accepts arbitrary strings and logs them to syslog using gs.log
If my response helped please mark it correct, so it can benefit other readers.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 05:24 AM
Hi,
jslog will print messages in browser console.
If you are using Chrome press F12 to open the DevTools. All your messages will be printed under console tab. Make sure you login as Admin in ServiceNow
Thank you,
Palani
Palani