title: convert logback.xml to log4j.properties
body: <p>How can I convert this logback.xml to an equivalent log4j.properties?</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;timestamp key="byDay" datePattern="yyyy-MM-dd"/&gt;
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
          &lt;file&gt;logging-${byDay}.log&lt;/file&gt;
          &lt;append&gt;true&lt;/append&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;root level="info"&gt;
          &lt;appender-ref ref="FILE" /&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I am changing my logging system from logback to log4j. I already have this logback.xml file for logback. So need an equivalent log4j.properties file for log4j.</p>