This document is the source code for the logrotate utility. It summarizes the logrotate program as rotating log files by compressing or removing old log files based on options in a configuration file. Key sections of code handle parsing command line arguments, reading options from a configuration file, and implementing the core rotation logic on individual log files.