0

We have been trying to implement log rotation in Guidewire version 6 for Tomcat server logs. 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?

Oresztesz
  • 2,294
  • 1
  • 15
  • 26
Vasanth
  • 35
  • 5

1 Answers1

2

Log4J should be able to do log rotation for you if you configure it properly. The official documentation has some examples for configuring it under Tomcat:

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.

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

Oresztesz
  • 2,294
  • 1
  • 15
  • 26