我的主要logrotate.conf是:
include /etc/logrotate.d
这是我的/etc/logrotate.d/PHP-errors:
/var/log/PHP-errors.log { rotate 7 daily missingok notifempty mail me@example.com }
/var/log/PHP-errors.log { rotate 7 daily missingok notifempty /bin/mail me@example.com }