I'm using Google toolbox for Mac's GTMLogger to do logging to file in the app I'm working on.
I'm trying to decide how to do log file rollover when the file gets large enough.
Ideally I would like something like log4net's immediate rollover when the log file hits 1 mb with max 11 log files at any one time, but I don't see any built-in way to do this and I'm wondering if trying to add it is more trouble than it's worth.
The somewhat simpler option I can think of is just doing this check on app start-up and rolling over the log it it's over a certain size. The downside to this is of course if somebody leaves the app running for a week or two (and since a portion of the app is a launchd daemon this is a definite possibility for those who rarely restart), there could be a log file of non-trivial size built up during this period (depending on what logging level is enabled).
What's going to be my best option here?