<< Prev Question Next Question >>

Question 21/34

A developer creates two custom classes. ClassA has the following code:
package com.aem.abc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() { logger.debug("Message from Class A method");
}
}
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:
package com.aem.xyz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() { logger.debug("Message from Class B method");
}
}
Which action must the developer take to see the log messages in the same file from both classes?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (34q)
Question 1: A Client-Side Library has the category "library.example". Wh...
Question 2: A developer needs to install a content package on an AEM env...
Question 3: A developer is working on the following Sling Model that is ...
Question 4: A developer needs to implement a service component that shou...
Question 5: A developer needs to create an OSGi service to run on an Aut...
Question 6: How should a developer enable remote debugging of an AEM ser...
Question 7: A developer wants to extend AEM Core Components to create a ...
Question 8: A developer is creating a custom component on the page /late...
Question 9: A developer is working on a project locally and needs to ins...
Question 10: Which xml tag is used within the vault package definition to...
Question 11: After adding new features, a developer's environment is expe...
Question 12: A developer is working on an HTL script for a custom compone...
Question 13: Refer to the following Client Library node structure. +clien...
Question 14: A developer is working on a complex project with multiple bu...
Question 15: An application runs specific license checks against certain ...
Question 16: From which AEM Web Console should a developer access and dow...
Question 17: A developer is creating a custom method. This method must re...
Question 18: One content package of a custom application contains the fol...
Question 19: A developer developed a workflow that makes a copy of every ...
Question 20: Which two methods could a developer use to obtain a Session ...
Question 21: A developer creates two custom classes. ClassA has the follo...
Question 22: An application contains an OSGi configuration that contains ...
Question 23: A developer creates an AEM editable template that includes a...
Question 24: A developer created an editable template with a Layout Conta...
Question 25: A developer needs to ensure that the path /content/&lt;proj&...
Question 26: A developer is installing a content package with the package...
Question 27: A service component periodically retrieves content from an e...
Question 28: A banking AEM application contains functionality to calculat...
Question 29: Two AEM publish instances feed a single Dispatcher. Which pa...
Question 30: A developer has a component named foobar with the following ...
Question 31: Which log file should a developer use to search for exceptio...
Question 32: A custom application contains a service component com.proj.S...
Question 33: A developer needs to configure sets of values according to t...
Question 34: A developer has a component named foobar with the following ...