title: org.slf4j.Logger logs to console, how do I log to file?
body: <p>I am using the org.slf4j.Logger to log output.  Output is going to console.  How do I get logging logged to a log file? </p>
  
  <pre><code> private static final Logger LOG = LoggerFactory.getLogger(ClassName.class );
   LOG.info("Logging output to console");
  </code></pre>
  
  <p>I am not using a log4j.properties file.  I am assuming I will need one.  </p>
  
  <p>I added the following log4j.properties file and placed it in different parts of my eclipse project. </p>
  
  <pre><code> # Define the file appender
   log4j.appender.FileAppender=org.apache.log4j.RollingFileAppender
   log4j.appender.FileAppender.File=logger.log
   log4j.appender.FileAppender.layout = org.apache.log4j.PatternLayout
   log4j.appender.FileAppender.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
  
   # Direct all messages there
   log4j.rootLogger = INFO, FileAppender
  </code></pre>
  
  <p>I even used </p>
  
  <pre><code> PropertyConfigurator.configure("log4j.properties");
  </code></pre>
  
  <p>But no logging file appears.  log4j.properties doesn't seem to have an effect.</p>