title: Log4j DailyRollingFileAppender: Specifying rollover directory
body: <p>Does anyone happen to know if log4j's DailyRollingFileAppender class is capable of creating the new logs in a different directory than the source file?</p>
  
  <p>I know that this is possible with RollingFileAppender, as per:
  <a href="https://stackoverflow.com/questions/22866704/log4j-move-rolling-files-to-another-directory-location">log4j move rolling files to another directory/location</a></p>
  
  <p>The reason I would like to use the former appender is because it enables the rollover process to be based on a date or time, as opposed to a maximum file size.</p>
  
  <pre><code>log4j.rootLogger=INFO, EXAMPLE
  
  log4j.appender.EXAMPLE=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.EXAMPLE.DatePattern='.'yyyy-MM-dd
  log4j.appender.EXAMPLE.File=/path/to/my/logs/example.log
  log4j.appender.EXAMPLE.Append=true
  log4j.appender.EXAMPLE.layout=org.apache.log4j.PatternLayout
  log4j.appender.EXAMPLE.layout.ConversionPattern=%d{dd-MMM-yyyy HH:mm:ss,SSS} - %X{userId} - %X{sessionId} %-5p %c{1}:%L - %m%n
  </code></pre>