Tomcat, Docker, Logging, and STDOUT?

后端 未结 6 1113
南旧
南旧 2021-01-19 12:17

I\'m running tomcat in docker, but I can\'t see the logs. They are written to various log files under tomcat/logs, but I can\'t see them when tomcat is running in a docker c

6条回答
  •  我在风中等你
    2021-01-19 12:53

    Found a nice way here: https://github.com/Scout24/tomcat-stdout-accesslog/issues/2

    Replace the following Valve in your server.xml file.

    
    

    Linux only!

    This "nice way" works for me as expected.

提交回复
热议问题