I would like to have the Log4j2 logging information available in the TestNG reports for all of the test cases.
TestNG uses a special logger class called Reporter.java t
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory;
add this in pom.xml
log4j log4j 1.2.16 compile
then you can use log.info or log.error etc...