UI action log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 08:54 AM
How to add log statements in UI action to see if it is running. Is the syntax below is correct? gs.log() in my script.
gs.log("Inside the log");
I created a UI action and I want to test if it is triggering or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 09:00 AM
Yes you can use gs.log();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 09:58 AM
Hi,
As like 4 others have said, you can use gs.log and then go to your syslog.list and look that over. If you sort by Source is *** Script that will show you all scripted log entries. Then use date/time to find relevant information.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 10:47 AM
Hello,
I sorted by source=*** Script and by today, do I have to type "Inside the log" under Message ?
How do I find if UI action ran under Log Entry?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 10:52 AM
You can, sure. To find the relevant logs...I wouldn't imagine your log isn't that busy where you're developing that this is being lost/hard to find?
As far as finding if the UI Action ran...what is the UI Action doing?
It won't point blank say in the log that the UI Action ran, unless you've coded that log statement to sort of allude to that....otherwise...you'd need to provide more information.
The UI Action "ran" if the log statement within the UI Action shows in your log...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 10:09 AM
All good points by others. I find this version of gs.log() more useful.
gs.log("Inside the log", "UI_ACTION_NAME");
The second parameter is the source. You can filter the logs with source = UI_ACTION_NAME
Vinod Kumar Kachineni
Community Rising Star 2022