Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
    
    
    
          
        
Hello guys ,
As per this docs - https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/debugging/debuggin... , custom log file is not supported in AEM aa CS .
I have tried writing custom logs to error.log in org.apache.sling.commons.log.LogManager.factory.config~test.cfg.json using below configuration . But I am still not getting custom log statements in aemerror.log file ( from developer console ) .
{
"org.apache.sling.commons.log.names": [
"com.brandnew.core.models.TestClass"
],
"org.apache.sling.commons.log.level": "INFO",
"org.apache.sling.commons.log.file": "logs/error.log",
"org.apache.sling.commons.log.additiv": "false"
}
Could you guys please suggest any other solution or point out any mistake in above steps?
Résolu ! Accéder à la solution.
Vues
Réponses
Nombre de J’aime
          
        
Hi @newbie34,
the below configuration without specifying a log file works for me on AEMaaCS:
{
  "org.apache.sling.commons.log.level": "$[env:LOG_LEVEL_CUSTOM;default=error]",
  "org.apache.sling.commons.log.names": [
    "com.my-project.cms"
  ]
}
Hope this helps,
Daniel
          
        
Hi @newbie34,
the below configuration without specifying a log file works for me on AEMaaCS:
{
  "org.apache.sling.commons.log.level": "$[env:LOG_LEVEL_CUSTOM;default=error]",
  "org.apache.sling.commons.log.names": [
    "com.my-project.cms"
  ]
}
Hope this helps,
Daniel
          
        
Hi @daniel-strmecki ,
Thanks for replying .
So are you able to see log statements for specified class in "aemerror" file from developer console?
Vues
Réponses
Nombre de J’aime
          
        
Hi @newbie34,
yes. You should see the log statement also without any custom config, but this enables us to lower the log level to INFO for our specific packages.
Good luck,
Daniel
          
        
Thanks @daniel-strmecki , worked for me too .
Vues
Réponses
Nombre de J’aime
Vues
Likes
Réponses
Vues
Likes
Réponses