title: log4j:WARN No appenders could be found for logger (running jar file, not web app)
body: <p>First up - yes, I have read the multiple questions &amp; answers on this topic, and can't get any of the solutions within those to help me. I'm not running Tomcat or JBoss and I don't have a <code>web.xml</code> file to change. I'm using Java 6.0 and <code>log4j-1.2.8.jar</code>.</p>
  
  <p>I am creating a runnable jar file with IDEA IntelliJ with jar libraries packaged separately and linked via the manifest. I am running my code on a Linux server thus:</p>
  
  <pre><code>me@server:/mydir&gt; java -jar code/myjar.jar
  log4j:WARN No appenders could be found for logger (FactoredEventsForTrna).
  log4j:WARN Please initialize the log4j system properly.
  </code></pre>
  
  <p>My log4j configuration file (which I've placed both in <code>mydir</code> and <code>mydir/code</code>, just in case) is:</p>
  
  <pre><code>## Logger configure file for myproject
  log.dir=log/
  datestamp=yyyy-MM-dd/HH:mm:ss.SSS
  log4j.rootLogger=TRACE, file, proappender, console
  
  log4j.appender.file=org.apache.log4j.RollingFileAppender
  log4j.appender.file.maxFileSize=1GB
  log4j.appender.file.maxBackupIndex=5
  log4j.appender.file.File=log/mydebug.log
  log4j.appender.file.threshold=TRACE
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%d{${datestamp}} %5p: %c{2} - %m%n
  
  log4j.appender.proappender=org.apache.log4j.RollingFileAppender
  log4j.appender.proappender.maxFileSize=5GB
  log4j.appender.proappender.Threshold=INFO
  log4j.appender.proappender.File=log/myinfo.log
  log4j.appender.proappender.layout=org.apache.log4j.PatternLayout
  log4j.appender.proappender.layout.ConversionPattern=%d{${datestamp}} %5p: %c{2} - %m%n
  
  log4j.appender.console=org.apache.log4j.ConsoleAppender
  log4j.appender.console.Threshold=DEBUG
  log4j.appender.console.layout=org.apache.log4j.PatternLayout
  log4j.appender.console.layout.ConversionPattern=%d{${datestamp}} %5p: %c{2} - %m%n
  </code></pre>
  
  <p>And I have created the <code>log/</code> directory in <code>mydir</code> and <code>mydir/code</code>, again, just in case.</p>
  
  <p>Any ideas?</p>