About Testing Log configuration for Logback
Default configuration for Logback logging in unit tests.
The AEM API Uber Jar comes since AEM 6.5.3 with a static logger implementation for Logback which is useful for outputting log messages in unit test. This module contains a default log configuration which can be included in AEM projects as test dependency.
<dependency> <groupId>io.wcm</groupId> <artifactId>io.wcm.testing.logging.logback</artifactId> <scope>test</scope> </dependency>
If you want to alternatively use slf4j-simple you can add a test dependency to org.apache.sling.testing.logging-mock instead.