AFAIK, you do it in a cron, regardless of your method.
logrotate is designed to rotate, compress, remove old, & mail logs. You would run logrotate in a cron. see "man logrotate" (I would give examples if I knew it better, but don't... so see the man page
)
if all you need to do is remove old logs, you can do that with a simple find command:
Code:
find /log/location -type f -mtime +7 -exec rm -v '{}' \;
of course, you lose all the other fancy features of logrotate, but if all you're after is deleting files... that will do it.
fyi:
"-type f" means only return files (as opposed to files and directories and other stuff)
"-mtime +7" means anything older than 7 days (actually, older than 7*24 hours ago)
"-exec rm -v '{}'" means verbosely remove the file(s) - I like leaving verbosity on so that my cron mails me with what it did.