title: log4j logging to two different files with one Logger only
body: <p>I have read though all post here and though my question repeats the one of others, non of the answers really anwers mine:</p>
  
  <p>I have quite a large project with a logger in almost every class. I wont to keep using only this one Logger and I want it to to create
  - a log file with INFO and ERROR
  - a separate log file with ERROR only</p>
  
  <p>This is the code is use to log:</p>
  
  <pre><code>static Logger log = Logger.getLogger(TestLogger.class);
  
  public static void main(String[] args) {
  
      log.debug("debug");
      log.info("info");
      log.error("error");
  
  }
  </code></pre>
  
  <p>and this is how I thought I cound configure it, leaving out the layout stuff.</p>
  
  <pre><code>log4j.rootLogger=INFO, stdout, file
  log4j.logger.errors = ERROR, stdout, file, file2
  
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  </code></pre>
  
  <p>...</p>
  
  <pre><code>log4j.appender.file=metaobjects.io.CustomFileAppender
  log4j.appender.file.File=c:/temp/execution%timestamp/test.log
  </code></pre>
  
  <p>...</p>
  
  <pre><code>log4j.appender.file2=metaobjects.io.CustomFileAppender
  log4j.appender.file2.File=c:/temp/execution%timestamp/error.log
  </code></pre>
  
  <p>Is there any way to get what I want or do I need two Logger objects in every class?</p>