AD0-E103 Exam QuestionsBrowse all questions from this exam

AD0-E103 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?

Show Answer
Correct Answer: AC

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

2 comments
Sign in to comment
MankuUmaOption: C
Jun 14, 2020

Answer should be C

heenamadanOption: C
Jun 20, 2020

Should be C