http://www.perlmonks.org?node_id=975774


in reply to parameter for log4perl

Use Log::Dispatch::FileRotate

If you don't supply a date pattern for log rotation, it will rotate by file size instead, so when the log file reaches 10 Meg (or whatever size you specify) it will rotate the log file & start a new one.