- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018 05:58 AM
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.
Solved! Go to Solution.
- 86,375 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 05:13 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018 06:01 AM
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() .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018 06:17 AM
Can you share your code ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 05:05 AM
MY code is:
gs.log("my message");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 05:14 AM