How to use gs.log

Mohammad8
Kilo Expert

I have a Scheduled Job in which I want to add a simple log message. All the article say that I can simple write gs.log("my message"); and this should work. Unfortunately, when I go to the sytem log, I don't see my log message.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

You can mention a source that will be populated in the 'Source' field in the log record. You can search using the value in the 'Source' field.

Else, you can try using gs.info('message','source'). This will also add a log record in the sys_log table.

 

 

View solution in original post

9 REPLIES 9

Omkar Mone
Mega Sage

Hi 

All the logs go in syslog_list table only, the difference is in the SOURCE of that logs that differentiates between each.

 

If you want debug you can add gs.addInfoMessage() .

SaiRaviKiran Ak
Giga Guru

Can you share your code ?

MY code is:

 

gs.log("my message");

i believe you have used the log like this.

 

system Definition >> Scheduled Job >>

 

find_real_file.png

 

i checked in log and it's coming.

 

find_real_file.png

 

if you are in scoped application kindly use gs.info() in my case i am in global scope and used gs.log()