Test Classes log file in aem
I trying to show test classes log in log file (Sling server side junit testing)
I create self log file in Apache Sling Logging Logger Configuration below attached screenshot but not show logger value in log file
@RunWith(SlingAnnotationsTestRunner.class)
public class TopNavigationControllerTest {
{
private static final Logger LOGGER = LoggerFactory.getLogger(TopNavigationControllerTest.class);
@Before
public void setUp() {
LOGGER.error("%%%%%%%%");
LOGGER.debug("#####");
collection = new ArrayList();
System.out.println("@Before - setUp");
}
@Test
public void testgetNavDetails() throws Exception
{ LOGGER.debug("*************");
}