I wish to rotate logs by file size and retain old logs by age. The maxage parameter puts a check on how old rotated files could be. But I am looking for a case where you rotate files when they reach a specific size (say 100k) and keep as many old files for a specific number of days (say 7 days).
It could be possible that there are lesser number of writes to the log file and there could be only one rotation in 7 days, or you could have multiple rotation within a single day. In any case I want to keep old files for 7 days (in this case) from the day they are created