Posted on 2006-02-15 17:23:01-08 by toycannon
How do you create a logfile using both size and date format
Is there a way to rotate log files and specify a logfile format? For example, I would like to create log files with the base name of MyCode.log which rotate when they exceed 3 meg in size and the name of the file would have the format of MyCode.YYYYmmdd.log_number.log (ex. MyCode.20060215.1.log, MyCode.20060215.2.log, ...)
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.