Logfile rotation using Log4perl module.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi all,

I want to implement a Log4Perl functionality, where 10 instances of a
single process would write to the single log file. This is doable,
because the Log4perl will take care of serialization.

But, I want to put in rotation too, so that after the end of 1 hour,
the log filename should be changed say from X.txt to (X+1).txt .

Any simple way to go about that or we have to use locking while
filename/filepointer is being changed ?


Site Timeline