title: Log4j logging to file fails
body: <p>I have the following configuration in <code>log4j.properties</code> file: </p>
  
  <pre><code># Root logger option
  log4j.rootLogger=INFO, file, stdout
  
  # Direct log messages to a log file
  log4j.appender.file=org.apache.log4j.RollingFileAppender
  
  log4j.appender.file.File=/data.log
  log4j.appender.file.MaxFileSize=10MB
  log4j.appender.file.MaxBackupIndex=10
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  
  # Direct log messages to stdout
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  </code></pre>
  
  <p>In my Java Product class I've provided the Logger and PropertyConfigurator in the startTask method</p>
  
  <pre><code>static final Logger logger = Logger.getLogger(Product.class);
  public void startTask() {
  PropertyConfigurator.configure("log4j.properties");
  try {
       service.create(product);
       logger.info("Creation started");
  } catch (Exception e) {
    // Log Exception
       logger.error(e);
  }
  
  }
  </code></pre>
  
  <p>As a result there is a "Creation started" info message in the console. But nothing is logged into the <code>data.log</code> file. Could it be the problem with the file path? I have several modules in my project, each of them has a resources folder. And the <code>data.log</code> file is in the resources folder. </p>
  
  <p>I tried to put the <code>data.log</code> file into the <code>D:\</code> root folder but it didn't help.</p>