title: Change date format in Wildfly(JBoss) access log
body: <p>access_log in wildfly logs the entries with the following predefined date format, which is produced by %t:</p>
  
  <blockquote>
    <p>[22/Oct/2019:14:28:36 +0300]</p>
  </blockquote>
  
  <p>However, I would like to change that to be as below:</p>
  
  <blockquote>
    <p>[22/10/2019 14:28:36.345]</p>
  </blockquote>
  
  <p>I have tried to change the pattern in standalone xml file as below:</p>
  
  <pre><code>&lt;access-log pattern="%{dd/MMM/yyyy:HH:mm:ss Z}t %t %h %l %u &amp;quot;%r&amp;quot;s %s %b &amp;quot;%{i,Referer}&amp;quot; &amp;quot;%{i,User-Agent}&amp;quot;"/&gt;                       
  </code></pre>
  
  <p>However, the following is being logged instead:</p>
  
  <pre><code>%{dd/MMM/yyyy:HH:mm:ss Z}t [22/Oct/2019:14:28:36 +0300] 127.0.0.1 - - "GET /favicon.ico HTTP/1.1"s 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"
  </code></pre>
  
  <p>How can I format the date properly?</p>
  
  <p>I use wildfly-10.1.0.
  I have also tried the format below, that can be used for the apache access logs:
  
  But without any success.</p>
  
  <p>There are other similar questions <a href="https://developer.jboss.org/thread/242284" rel="nofollow noreferrer">online</a>, but have not been answered.</p>