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
解決済! 解決策の投稿を見る。
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
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.
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
Hello @Anushka_RK
Here is the screenshot from my test.
Note: In the dates select the start date = yesterday's date
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
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.
表示
返信
いいね!の合計
Hi @_Manoj_Kumar_ ,
I used the following code:
logInfo("Response: "+ctx.vars.Response);
Kind Regards,
Anushka R
表示
返信
いいね!の合計
The code is correct and you should see the logging in web logs
表示
返信
いいね!の合計
Hi @Anushka_RK,
Were you able to resolve this query with the given solution? Do let us know.
Thanks!
表示
返信
いいね!の合計
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!
表示
返信
いいね!の合計