Expand my Community achievements bar.

SOLVED

Where can we view logInfo() for Web Applications ?

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

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

 

View solution in original post

10 Replies

Avatar

Community Advisor

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.


     Manoj
     Find me on LinkedIn

Avatar

Level 2

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

 

Avatar

Community Advisor

Hello @Anushka_RK 

 

Here is the screenshot from my test.

Manoj_Kumar__0-1706572757684.png

 

Note: In the dates select the start date = yesterday's date


     Manoj
     Find me on LinkedIn

Avatar

Level 2

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

Avatar

Community Advisor

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.


     Manoj
     Find me on LinkedIn

Avatar

Level 2

Hi @_Manoj_Kumar_ ,

 

I used the following code:

logInfo("Response: "+ctx.vars.Response);

 

Kind Regards,

Anushka R

Avatar

Community Advisor

The code is correct and you should see the logging in web logs


     Manoj
     Find me on LinkedIn

Avatar

Administrator

Hi @Anushka_RK,

Were you able to resolve this query with the given solution? Do let us know.

Thanks!



Sukrity Wadhwa

Avatar

Correct answer by
Level 3

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