Hi Team,
I am trying to print the values for all the variables in a web application. However, I do not see the logInfo("sample_text") printed in the Audit tab or in the debug mode of Preview tab.
Can anyone please help me understand where I could find these logs?
Kind Regards,
Anushka
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Sukrity_Wadhwa,
I still don't see the logs in the web.log file. But it could also be an access level restriction (which I'm not aware of) that isn't allowing me to view those logs.
Kind Regards,
Anushka RK
Hello @Anushka_RK
logInfo will capture the logs in the web.log file. You can see this data in the Monitoring tab outside on the light ui.
Alternatively, you can use console.log to print anything in the console.
Views
Replies
Total Likes
Hi @_Manoj_Kumar_ ,
Thank you for your quick response.
I checked all the web process log files under Monitoring Tab. However, I do not see the logs printed there.
I was wondering if you could share a screenshot of an example? TYIA
Kind Regards,
Anushka R
Views
Replies
Total Likes
Hello @Anushka_RK
Here is the screenshot from my test.
Note: In the dates select the start date = yesterday's date
Views
Replies
Total Likes
Hi @_Manoj_Kumar_ ,
Thank you for sharing the screenshot.
I tried the above steps and I still don't see the logs at my end. I am able to view other logs that are auto generated at the backend. For eg: 'ABC' published successfully.
Could this be an access level issue?
Kind Regards,
Anushka R
Views
Replies
Total Likes
Hello @Anushka_RK
Could you please share the screenshot of the code used for the logging? If you can see other logs then it is not an access issue.
Views
Replies
Total Likes
Hi @_Manoj_Kumar_ ,
I used the following code:
logInfo("Response: "+ctx.vars.Response);
Kind Regards,
Anushka R
Views
Replies
Total Likes
The code is correct and you should see the logging in web logs
Views
Replies
Total Likes
Hi @Anushka_RK,
Were you able to resolve this query with the given solution? Do let us know.
Thanks!
Views
Replies
Total Likes
Hi @Sukrity_Wadhwa,
I still don't see the logs in the web.log file. But it could also be an access level restriction (which I'm not aware of) that isn't allowing me to view those logs.
Kind Regards,
Anushka RK
Thanks for sharing that @AnushkaRajan!
Views
Replies
Total Likes
Views
Likes
Replies