简体   繁体   English

关闭tomcat日志记录

[英]Turn off tomcat logging

I want to turn off tomcat's logs jvm.stderr and jvm.stdout which have been set in the wrapper.properties, I've commented these lines out but that just redirects the logs to be written to the root tomcat folder. 我想关闭已经在wrapper.properties中设置的tomcat的日志jvm.stderr和jvm.stdout,我已经对这些行进行了评论,但只是将日志重定向到要写入根tomcat文件夹。

The reason for turning them off is that these logs do not seem to have any sort of size control so I have a situation where they are getting too big and causing problems. 关闭它们的原因是这些日志似乎没有任何类型的大小控制,所以我有一种情况,它们变得太大并导致问题。

Is it possible to totally disable them or at least put in place some sort of management to stop the files getting too big. 是否有可能完全禁用它们或至少实施某种管理来阻止文件变得太大。

Thanks 谢谢

Have you tried setting the logs locations to /dev/null in the wrapper.properties? 您是否尝试在wrapper.properties中将日志位置设置为/ dev / null? Alternatively, on if you're on Windows try the /dev/null equivalent. 或者,如果您在Windows上,请尝试使用/ dev / null等效项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM