title: Keycloak log files in Docker
body: <p>I want <code>server.log</code> file to log events like successful logins, logouts, etc. With some additional information like <code>User-Agent</code> etc. For that, I wrote an SPI (mostly copied code from <code>JBossLoggingEventListenerProvider.java</code> &amp; <code>JBossLoggingEventListenerProviderFactory.java</code>) and deployed the SPI successfully, it appears in <code>Events -&gt; Config</code> tab and even generates my desired logs on the console. </p>
  
  <p>Now, when I go to the location: <code>/opt/jboss/keycloak/standalone/log/server.log</code> inside the Docker and open it, my relevant logs aren't there. I tried different options like:</p>
  
  <p><a href="https://lists.jboss.org/pipermail/keycloak-user/2017-February/009498.html" rel="nofollow noreferrer">https://lists.jboss.org/pipermail/keycloak-user/2017-February/009498.html</a>
  <a href="http://www.programmersought.com/article/30541589587/" rel="nofollow noreferrer">http://www.programmersought.com/article/30541589587/</a></p>
  
  <p>But still no success. Please let me know how can I enable my event listener to write the logs to the <code>server.log</code> file inside the Docker.</p>