I would like each run f the application to start a new log file. I would like the application log file to be unique. 

Is it possible with the log4cxx DOMConfigurator to create a file name based on the current date and time?

 

In log4net, this would be accomplished with something like this:

 

  <appender name="MyAppender" type="log4net.Appender.FileAppender">

    <file type="log4net.Util.PatternString" value="logs\MyAppName_%date{yyyyMMdd-HHmmss}.log" />

    <appendToFile value="false"/>

    <layout type="log4net.Layout.PatternLayout">

      <conversionPattern value="%date %-5level %logger [%property{NDC}] - %message%n"/>

    </layout>

  </appender>