where to put log4j2.xml in maven project code example
Example: log4j maven
package com.howtodoinjava;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
public class Log4jHelloWorld {
static final Logger logger = Logger.getLogger(Log4jHelloWorld.class);
public static void main(String[] args)
{
//Configure logger
BasicConfigurator.configure();
logger.debug("Hello World!");
}
}