gs.debug or gs.info in scripts is not logging

Cory B
Kilo Expert

Im using script step in flow designer to create actions.  However whenever I use gs to try to log, nothing gets logged. I tried using gs.log, gs.debug, and gs.info - none of them seem to work.  Please see the screen shots below of the script and test. Any idea whats going on here?

find_real_file.png

 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

Hi,

Use gs.info() because it supports in all the scopes.

I think you have to check the system logs table.

View solution in original post

5 REPLIES 5

BALAJI40
Mega Sage

Hi,

Use gs.info() because it supports in all the scopes.

I think you have to check the system logs table.

Geoff_T
Mega Sage

Hey,

The log will be written out to the System Logs. If you review the docs here:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/concept/flow-execution-details.html

You can see that the logs in the execution details are different from the logging you are expecting when you use gs.info etc

Use the log entries to identify potential processing or performance issues. Each log entry has its own row displaying the creation date, log level, and log message. If the action does not generate any logs, the statistics displays the string No Logs.

 

Geoff

How do you access the System Logs? 

Hi,

Follow below the navigation,

Application navigator - system logs - system log - ALL

Check here and your values will be stored in the message column.

System logs | ServiceNow Docs