Log rotation using custom logging

As customizing logging configurations are not supported by apigee, is there a way logs can be set to rotate so that we are able to control log sizes?

For example, if we want to configure the Apigee UI logs to write to a new file everyday, instead of appending to the same file. This way the logs size can be managed by cleaning up any logs older than 4 weeks.
What is the best way of achieving without setting up custom logging?

Solved Solved
0 1 462
1 ACCEPTED SOLUTION

You can use rolling file appender to rotate the files. Please read more details about this in the below link:

https://www.playframework.com/documentation/2.4.x/SettingsLogger

You need to set this up in the file named logback.xml. It should be available in the conf directory of respective component: /<inst_root>/apigee/<component>/conf

View solution in original post

1 REPLY 1

You can use rolling file appender to rotate the files. Please read more details about this in the below link:

https://www.playframework.com/documentation/2.4.x/SettingsLogger

You need to set this up in the file named logback.xml. It should be available in the conf directory of respective component: /<inst_root>/apigee/<component>/conf