Enable debug logging for global scope script include

Max Nowak
Kilo Sage

Hi,

how can I see log entries created via "gs.debug()" in a script include in global scope? If I do that in a custom application, I can see the output in System Logs -> All, but for global scope objects, this doesn't seem to work.

I already tried to enable all debugging and opened the debug log, but my log message is not showing up there.

Thanks for your help!

3 REPLIES 3

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Max - Could you please navigate to module "Script Log Statements" and confirm if you are able to see the log output?

 

- Pradeep Sharma

Hello Pradeep Sharma,

No, I am not able to see the log output there. It only shows Error, Warning and Information levels there.

Musab Rasheed
Tera Sage
Tera Sage

Try using gs.log and see if you can see logs.?

Please hit like and mark my response as correct if that helps
Regards,
Musab