Log rotation is usually done by a logrotate configuration. http://packages.qa.debian.org/l/logrotate.html