Where is gs.debug() output?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 02:17 PM
I use gs.debug to generate some debug message. I have enabled Session Debug in my application. I even tried "Enable All" under System diagnostics-> Session Debug and Debug Log. Still don't see the debug message printed out in System Logs > System Log > Application Logs.
Where I should go to see the debug message printed by gs.debug() in my application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2016 10:02 AM
At the moment the only way to see gs.debug() messages is to turn on "System Diagnostics > Session debug > Enable All" in Helsinki (i don't know about previous releases) and use your browser search functionality to find "[DEBUG]". I tried all other Debug Scripts (e.g. Debug Log, just filter "debug" to see all) individually, no one is showing gs.debug(). The big problem is that there is much overhead to the "Enable All" function, so a "Show Log Verbosity Debug" option would be nice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2016 09:19 PM
Can you try creating a system property in your app scope - <<scope>>.logging.verbosity and set it to debug, then see if they show up?
See the docs here:
Scoped Script Logging - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 03:57 AM
This works. tested in Istanbul patch 3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2018 03:57 AM
For anyone looking for this info today, you can find the documentation here:
Properties:
General info about scoped script logging:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 05:49 AM
Same with me gs.debug message does not come in system logs, when adding in scripted rest api