title: Java log4j return some warnings
body: <p>I am using <code>org.apache.log4j</code></p>
  
  <p>My log4j.properties file content is given below</p>
  
  <pre><code>log=D:\\logs
  log4j.rootLogger=DEBUG, FILE
  
  log4j.appender.FILE=org.apache.log4j.FileAppender
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %m%n
  
  log4j.appender.successLog=org.apache.log4j.FileAppender
  log4j.appender.successLog.File=${log}\\success_log_${current.date}
  log4j.appender.successLog.layout=org.apache.log4j.PatternLayout
  log4j.appender.successLog.Append=false
  log4j.appender.successLog.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %m%n
  
  log4j.appender.errorLog=org.apache.log4j.FileAppender
  log4j.appender.errorLog.File=${log}\\error_log_${current.date}
  log4j.appender.errorLog.layout=org.apache.log4j.PatternLayout
  log4j.appender.errorLog.Append=false
  log4j.appender.errorLog.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %m%n
  
  log4j.category.successLogger=DEBUG, successLog
  log4j.additivity.successLogger=false
  
  log4j.category.errorLogger=DEBUG, errorLog
  log4j.additivity.errorLogger=false
  </code></pre>
  
  <p>When I run this it run properly but it gives me the below Warnings</p>
  
  <pre><code>log4j:WARN File option not set for appender [FILE].
  log4j:WARN Are you using FileAppender instead of ConsoleAppender?
  </code></pre>