As my organization uses a docker container to run local AEM instance, I am NOT able to find log files or even crx/quickstart folder to play with.
I understand this question is more specific to AEM with docker, but has anyone in this forum happen to find the AEM log files for the local instance ? Otherwise, how we can debug our code while AEM running inside docker ?
I have been asked to use the below command to tail the logs, but I want to know the actual location of the AEM logs folder.
Of course this will completely depend on how the Docker image is set up.. but here are some pointers:
Check the docker-compose.yaml or docker command which launched the container to see if a drive was mounted in a specific way or if a volume is used to store the logs.
Even if you can't find the log files there are a couple of ways to see the logs:
You can check the contents of all log files by navigating to /system/console/slinglog in your browser. You can even download a zip containing all the logs.
If you want to see the logs in real-time, head over to CRX DE and open the Console tab (where the node properties are) un-check the Disable console button and you will get a tail of the error.log:
You run a remote debug listener on AEM using your favorite IDE (I use IntelliJ). To do so, just make sure that your AEM instance is running a debug port (30303 for example) and that the port is exposed by the container.
PS: I see you are looking for ./crx-quickstart inside the container, but a typical place to find AEM and the crx-quickstart folder is at /opt/aem/[author|publisher]/crx-quickstart