Unfinished Sofware's Blog

Entries tagged “Trac”

So, you’re like me and like to have trac constantly logging to file and you hate those files getting huge?

It is assumed that you keep all your trac environments on the same basedir, for example /var/lib/trac/.

Here’s a simple logrotate config file(normaly under /etc/logrotate.d/):

/var/lib/trac/*/log/trac.log {
rotate 7
create 640 www-data www-data

I hope you enjoy this simple solution.