Tomcat, Docker, Logging, and STDOUT?

后端 未结 6 1038
南旧
南旧 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:44

    May be it will be better to write logs directly to the stdout instead of the file in the container. It will be lost after restart.

    See for more details https://12factor.net/logs

提交回复
热议问题