Log file is empty (log4j)
Log information is shown on console but not on the log file (the file is created but no content is added). What's wrong? Source: package mytest; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.log4j.PropertyConfigurator; public class Main { public static void main(String[] args) { Logger log = Logger.getLogger(Main.class.getName()); log.setLevel(Level.ALL); log.info("A line)"); PropertyConfigurator.configure("log.properties"); log.info("Another line"); } } log.properties file: log4j.rootLogger=debug, stdout, R log4j.appender.stdout=org.apache.log4j