UI action log

s_45
Tera Contributor

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? 

14 REPLIES 14

Vishal Khandve
Kilo Sage

Yes you can use gs.log();  

Allen Andreas
Administrator
Administrator

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!

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?

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!

vkachineni
Kilo Sage
Kilo Sage

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

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022