Add initial logrotate support.
Merge pull request #1234 from brendandburns/fix

Add initial logrotate support.