Check logs for specific java class in AEMaaCS
Hello guys ,
As per this docs - https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/debugging/debugging-aem-as-a-cloud-service/logs , 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?