Lily
Posted on Jul 27
• Originally published at dev.to
Nobody plans for log files. You wire up a background job, it works, and six weeks later a directory you never look at is quietly eating your disk.
In my previous post on automating self-audits I built the skeleton of a nightly job. This post is about the side effect of that: the logs my resident agents keep spewing grew without bound, and how I designed a trimming script wired into launchd to keep things quiet.






