Where to check result of System.out.println | Community
Skip to main content
Level 4
March 26, 2022
Solved

Where to check result of System.out.println

  • March 26, 2022
  • 2 replies
  • 2352 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

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

2 replies

Kishore_Kumar_
Level 9
March 26, 2022

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-logging.html?lang=en 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
March 29, 2022

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