title: Docker Tomcat logging to catalina.out and to console
body: <p>Docker tomcat container saves the startup log of the tomcat application in catalina.out file (last line would <code>INFO: Server startup in 136607 ms</code>). But rest of the activity of the tomcat app is logged onto to console and can be viewed with <code>docker logs container_id</code>.</p>
  <p>Is there a way to log to file and console as well? I need the activity log inside catalina.out.2021.log in the tomcat container so I can run a script that collects analyze the logs and process it and sends email and It needs to run inside the container.</p>
  <p>Tomcat is started with custom logging properties file <code>/usr/local/tomcat/conf/logging.properties</code> but the output is ending up on console and not in file.</p>