title: Apache tomcat 8.5 access log with log4j2
body: <p>I try to change <code>Apache Tomcat 8.5</code> log by using <code>log4j2</code>. I could successfully implement it. </p>
  
  <p>However, there is one log type which I am unable to log with <code>log4j2</code>, the <code>localhost_access_log</code> </p>
  
  <p>This log was set in the <code>server.xml</code> file</p>
  
  <pre><code>&lt;Valve className="org.apache.catalina.valves.AccessLogValve" 
         directory="logs"
         prefix="localhost_access_log" suffix=".txt"
         pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" /&gt;
  </code></pre>
  
  <p>How can I change it so that it will be log by <code>log4j2</code> also?</p>