Answers for "log4j maven"

2

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!");
    }
}
Posted by: Guest on January-17-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language