Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a log file in which continously data is written from various part of my code. Now want to limit the size of this log file to 20mb ie generate a new log file when it exceeds 10mb . For eg:
logfile_1 : size = 20 mb logfile_2 : size = 20 mb etc..
I used the -s switch to check the size of log file but how can i make it run through a loop such that assigns these names to log file automatically?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log File
by daxim (Curate) on Oct 15, 2012 at 07:58 UTC | |
by Anonymous Monk on Oct 15, 2012 at 09:29 UTC | |
by Anonymous Monk on Oct 15, 2012 at 14:52 UTC | |
by RedElk (Hermit) on Oct 15, 2012 at 16:57 UTC |