Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 77

A developer creates two custom classes. ClassA has the following code:

The developer creates a custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class

ClassB with the following code:

Which action must the developer take to see the log message in the same file from both classes?

    Correct Answer: C

    To see log messages from both ClassA and ClassB in the same file, the developer needs to configure custom.log in the OSGi web console --> Sling --> Log Support and replace the logger setting from com.aem.abc with com.aem. This way, the logging configuration will capture log events from both packages com.aem.abc and com.aem.xyz, as they share the common prefix com.aem.

Discussion
MankuUmaOption: C

Answer should be C

heenamadanOption: C

Should be C