title: Programmatically creating different log files using log4j
body: <p>I have an automated integration test harness and would like to streamline the logging (which is implemented using log4j)</p>
  
  <p>I have a number of high-level tests, each with an id and require a <b>separate</b> log file per test.  As the tests are created randomly the ids are not known until runtime.</p>
  
  <p>Therefore I would like to ensure that logging within each high-level test is written out to the log file for that test.</p>
  
  <p>I don't want to create custom log levels, neither do I want to have logging sent to all appenders.</p>
  
  <p>Does anyone know a way of doing this?</p>