- I tried to getting test classes logger value in log file but unable to get value in log file.
- I created log file in AEM through Apache sling logging logger configuration but unable to get value in log file. 3.
@RunWith(SlingAnnotationsTestRunner.class) public class TopNavigationControllerTest { private static final Logger LOGGER = LoggerFactory.getLogger(TopNavigationControllerTest.class); Collection collection; @Before public void setUp() { LOGGER.error("%%%%%%%%"); LOGGER.info("@@@@@@@"); LOGGER.debug("!!!!!!!"); collection = new ArrayList(); System.out.println("@Before - setUp"); } @Test public void testgetNavDetails() throws Exception { LOGGER.debug("*************"); LOGGER.error("$$$$$"); } }
Aucun commentaire:
Enregistrer un commentaire