When creating a log file in AEM, the proper practice is to configure it under the/apps/myproject/configurationpath for the specific runmode folders (e.g., config.dev, config.stage, config.prod). This ensures that the log file configuration is applied based on the environment.
Runmode-specific configurationensures that logs are generated for the correct environment (development, staging, production), following best practices for AEM development.
Option A suggests using the /apps/systemconfiguration path, which is not the recommended location for project-specific configurations. Option B suggests asking for admin access, but developers typically create logs through code configuration rather than direct access to the console.
Refer toAEM’s logging configuration documentationfor details on setting up logs for specific environments.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit