I am learning log4j. But, I get this error not sure if I’m missing something. I have all the jars in place.
public class LoggingDemo {
private static final Logger logger = LoggerFactory.getLogger(LoggingDemo.class);
public static void main(String[] args) {
logger.info("Starting App....");
System.out.println("Testing log4j.......");
logger.info("Terminating App!");
}
}

I get this all the time when I am creating a new project. You need to create a log4j.properties file and add it to your class path. See the Configuration section of the manual http://logging.apache.org/log4j/1.2/manual.html
Or just change your code to: