Since this check and deletions are needed only once after log filesize increases over the specified size, I guess there's no point being too fussy about it. I concede, :+1:.

Though a micro optimization possible would be for rotate > 0 do the file renaming after older files have been purged so that one less file needs to be globed :smile:.