lundi 27 juillet 2015

junit test classes logger value unable to see in log file in aem

  1. I tried to getting test classes logger value in log file but unable to get value in log file.
  2. 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