简体   繁体   English

Guidewire:Tomcat 服务器日志轮换

[英]Guidewire : Tomcat server log rotation

We have been trying to implement log rotation in Guidewire version 6 for Tomcat server logs.我们一直在尝试在 Guidewire 版本 6 中为 Tomcat 服务器日志实现日志轮换。 But we dont have any idea and what are the thing require to implment.但是我们不知道什么是需要实现的东西。 So could you please help how to implement log rotation for tomcat servers in guidewire version 6?那么您能否帮助如何在 guidewire 版本 6 中为 tomcat 服务器实现日志轮换?

Log4J should be able to do log rotation for you if you configure it properly.如果配置正确,Log4J 应该能够为您进行日志轮换。 The official documentation has some examples for configuring it under Tomcat:官方文档有一些Tomcat下配置的例子:

https://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j https://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j

After Log4J is working with your Tomcat installation you can find many samples for setting RollingFileAppender with different properties, like file size, date-time, etc.在 Log4J 与您的 Tomcat 安装一起使用后,您可以找到许多用于设置具有不同属性的RollingFileAppender的示例,例如文件大小、日期时间等。

https://howtodoinjava.com/log4j/log4j-rolling-file-appender/https://howtodoinjava.com/log4j/log4j-rolling-file-appender/

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

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