The logrotate utility is designed to simplify the administration of logs on a system which generates a lot of log files. Logrotate provides automatic rotation, compression (gzip by default), removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file exceeds a certain size.
The logrotate utility is designed to simplify the administration of logs on a system which generates a lot of log files. Logrotate provides automatic rotation, compression (gzip by default), removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file exceeds a certain size.
To install logrotate, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install logrotate
To see what files were installed by logrotate, run:
port contents logrotate
To later upgrade logrotate, run:
sudo port selfupdate && sudo port upgrade logrotate
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.