Where to check result of System.out.println | Adobe Higher Education
Skip to main content
Level 4
March 26, 2022
Répondu

Where to check result of System.out.println

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 ?

Ce sujet a été fermé aux réponses.
Meilleure réponse par 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 commentaires

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 EmployeeRéponse
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