Valid AD0-E134 Dumps shared by ExamDiscuss.com for Helping Passing AD0-E134 Exam! ExamDiscuss.com now offer the newest AD0-E134 exam dumps, the ExamDiscuss.com AD0-E134 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AD0-E134 dumps with Test Engine here:
How should a developer create a custom log configuration?
Correct Answer: B
To create a custom log configuration in AEM, the developer should create an OSGi configuration file for the org.apache.sling.commons.log.LogManager.factory.writer component. This configuration file should be placed under the appropriate runmode-specific folder within the config directory. Here is the detailed process: * Create Configuration File: * Create a new XML file named org.apache.sling.commons.log.LogManager.factory.writer-<identifier>.xml in the config.<runmode> folder. * The <identifier> can be any unique identifier for your custom log configuration. * Specify Configuration: * Add the necessary configuration properties within this XML file. For example: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" org.apache.sling.commons.log.file="/var/log/custom.log" org.apache.sling.commons.log.level="debug" org.apache.sling.commons.log.pattern="\{0\}" org.apache.sling.commons.log.names="[com.myproject.custom]" /> * Deploy Configuration: * Save the configuration file and deploy it to the appropriate environment. The logging system in AEM will pick up this configuration and create a custom log file with the specified settings. References: * Adobe Experience Manager Logging * Apache Sling Logging