title: slf4j logging in console instead of file
body: <p>I'm testing Milton WebDAV API and I need to log when some document is opened. I can have it logging on Eclipse's console, but can't make it put the message on a external file.</p>
  
  <p>Found several links here at SO and Google, but none worked. I've spent about 4h in this already. Any guesses?</p>
  
  <p>Here's the situation (tried to format as best as I could):</p>
  
  <h3>log4j.properties</h3>
  
  <pre><code># Direct log messages to a log file
  log4j.appender.file=org.apache.log4j.FileAppender
  log4j.appender.file.File=/home/paulo/workspace/MiltonTutorial/logs/log.txt
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
  
  # Root logger option
  log4j.rootLogger=INFO, file
  </code></pre>
  
  <h3>DocumentResource.java</h3>
  
  <pre><code>public class DocumentResource implements GetableResource,
      PropFindableResource, DeletableResource, MoveableResource,
      CopyableResource, ReplaceableResource, PropPatchableResource, MultiNamespaceCustomPropertyResource {
  
      private final static Logger log = LoggerFactory.getLogger(DocumentResource.class);
      Document doc;
  
      (...)
  
      @Override
      public void sendContent(OutputStream out, Range arg1,
              Map&lt;String, String&gt; arg2, String arg3) throws IOException,
              NotAuthorizedException, BadRequestException {
          log.info("&gt;&gt;&gt; File {} opened", doc.getFileName());
  
          out.write(this.doc.getContent());
      }
  </code></pre>
  
  <h3>Eclipse's console when execute 'get testfile' on a WebDAV client</h3>
  
  <blockquote>
    <p>08/02/2013 18:03:15 com.ettrema.tutorial.milton.DocumentResource sendContent
    INFO: >>> File testfile opened</p>
  </blockquote>
  
  <h3>log.txt big content <a href="http://pastebin.com/raw.php?i=5ejRyieS" rel="nofollow" title="here">here</a></h3>
  
  <p>Thanks!</p>