title: unable to generate log file using log4j
body: <p>I am using tomcat 6 with eclipse Luna (Along with axis2 for webservices). I have imported the required log4j jar file(log4j-1.2.17.jar) and inserted the following line in the class also</p>
  
  <pre><code>static org.apache.log4j.Logger log = Logger.getLogger(WS.class);
  </code></pre>
  
  <p>Here is the properties file:</p>
  
  <pre><code># Define the root logger with appender file
  log4j.rootLogger = DEBUG, FILE
  
  # Define the file appender
  log4j.appender.FILE=org.apache.log4j.FileAppender
  # Set the name of the file
  log4j.appender.FILE.File=log.txt
  
  # Set the immediate flush to true (default)
  log4j.appender.FILE.ImmediateFlush=true
  
  # Set the threshold to debug mode
  log4j.appender.FILE.Threshold=debug
  
  # Set the append to false, overwrite
  log4j.appender.FILE.Append=true
  
  # Define the layout for file appender
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.conversionPattern= %d{dd MMM yyyy HH:mm:ss,SSS} %c %p %t %m%n%n
  </code></pre>
  
  <p>The properties file is in the src folder and jar file is in the build path of eclipse. I tried all different ways but unable to generate log file.</p>