Migrating from log4j to log4j2 - properties file configuration
<p>I have a Java application which is using <strong>log4j</strong> configured as below.</p>
<p>log4j.properties:</p>
<pre><code>log4j.rootLogger=INFO, R
log4j.appender.R = org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File = /trace.log
log4j.appender.R.Append = true
log4j.appender.R.DatePattern = '.'yyyy-MM-dd
log4j.appender.R.layout = org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern = %d{HH:mm:ss} %c{1} [%p] %m%n
</code></pre>
<p>I would like to migrate to log4j2 with the same configuration as above. Haven't found anything related to log4j2 properties configuration file as this support recently included.</p>
<p>How would be my <strong>log4j2.properties</strong> file with the same configuration above ?</p>