Expand my Community achievements bar.

SOLVED

Where to check result of System.out.println

Avatar

Level 5

Hello, 

I am testing one servlet in aem, for that I have given some print statements through system.out.println. I am using IntelliJ IDE I just want to check the output in the IDE, where do I check ?? Any idea ?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You should use a logging library from the beginning. Especially because it does not have any typing overhead at all in AEM.

 

https://www.danklco.com/posts/2022/03/8-tenets-for-cloud-scale-logging-in-aem.html

View solution in original post

2 Replies

Avatar

Community Advisor

sysout entry will be in ..\crx-quickstart\logs\stdout.log.

 

But prefer using logs instead of sysout.

 

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/configure-loggin... 

Avatar

Correct answer by
Employee Advisor

You should use a logging library from the beginning. Especially because it does not have any typing overhead at all in AEM.

 

https://www.danklco.com/posts/2022/03/8-tenets-for-cloud-scale-logging-in-aem.html