Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Check Debugging logs

Avatar

Level 2

Hi all,

I have debugging lines in my code like 
logger.debug("code statements to bebug");

How can I check this in adobe cloud manager 

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Refer this https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...
Essentially You can setup Logmanager factory config for your project. Something like org.apache.sling.commons.log.LogManager.factory.config~myProject.cfg.json

{
    "org.apache.sling.commons.log.names": ["com.example"],
    "org.apache.sling.commons.log.level": "debug"
    "org.apache.sling.commons.log.file": "logs/error.log"
}


Then You can download the logs by going to respective environment in your cloud program.

h_kataria_0-1726748954083.png

Select the service (author, publisher etc.) from which you want to download and select "aemerror" 

h_kataria_1-1726749036610.png

It should have your respective debug statements.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Refer this https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...
Essentially You can setup Logmanager factory config for your project. Something like org.apache.sling.commons.log.LogManager.factory.config~myProject.cfg.json

{
    "org.apache.sling.commons.log.names": ["com.example"],
    "org.apache.sling.commons.log.level": "debug"
    "org.apache.sling.commons.log.file": "logs/error.log"
}


Then You can download the logs by going to respective environment in your cloud program.

h_kataria_0-1726748954083.png

Select the service (author, publisher etc.) from which you want to download and select "aemerror" 

h_kataria_1-1726749036610.png

It should have your respective debug statements.

Avatar

Community Advisor

Hi, 

 

You could also use "aio cli" to tail or download the logs directly from your terminal, check this article: 

https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/debugging/debuggin... 

https://blog.arborydigital.com/tailing-aemaacs-logs 

 

Hope this helps



Esteban Bustamante