title: FileAppender not writing anything in log4j
body: <p>I have a small problem using log4j and <code>FileAppender</code>. When I am using <code>ConsoleAppender</code>, everything is working well but <code>FileAppender</code> won't ever produce a file (or write into a file). Moreover, I have no errors concerning log4j in the osgi console.</p>
  
  <p>Here's my configuration :</p>
  
  <pre><code># main link (console or file, depending on what we want)
  # log4j.category.com.foo=DEBUG, console
    log4j.category.com.foo=DEBUG, file
  # log4j.category.com.foo=DEBUG, console, file
  
  #  console logging
  log4j.appender.console=org.apache.log4j.ConsoleAppender
  log4j.appender.console.layout=org.apache.log4j.PatternLayout
  log4j.appender.console.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
  
  # file logging
  log4j.appender.file=org.apache.log4j.FileAppender
  log4j.appender.file.File=C:\\Users\\foo\\some_file.log
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
  </code></pre>
  
  <p>Note that the <code>ConversionPattern</code> attributes are exactly the same in the two appenders.</p>
  
  <p>I have tried to change the <code>File</code> argument to write the log in the "run" directory but it didn't do anything.
  I also tried to add <code>log4j.appender.file.ImmediateFlush=true</code> without success.</p>
  
  <p>Have I missed something (obvious ?) somewhere ? It sound strange that log4j isn't even able to write a simple log in a file....</p>
  
  <p>Thanks a lot in advance for your help.</p>