Is there a way to get AEM Logs in JSON format without using ACS Commons solution ?
I want to use log4j2 for logging purpose.
For the ACS Commons JSON event logger solution, you can refer to this -> https://adobe-consulting-services.github.io/acs-aem-commons/features/json-event-logger/index.html
And this article is useful as well, https://sling.apache.org/documentation/bundles/log-tracers.html#tracer-recording
You can refer to below URL for this requirement.
Check below article for your use case: