Forum Moderators: phranque

Message Too Old, No Replies

having a rotating log file

         

itsraghz

4:33 pm on Mar 12, 2008 (gmt 0)

10+ Year Member



Hi All,

Is there a way to achieve the rolling log file (rotating) which should grow once the log file reahces a particular size..?

Any help would be appreciable.

Thanks in advance.

phranque

10:13 pm on Mar 12, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



log file rotation is usually accomplished using cron jobs.
typically the rollover is time-based, but you could check the size first and skip the rollover if it hasn't reached the limit.
you should schedule the cron job to run often enough to do the rollover soon after it reaches the size limit.

itsraghz

12:07 pm on Mar 13, 2008 (gmt 0)

10+ Year Member



Thank you so much phranque.

So there is no other way to get it by default through some Directives is it? I am aware that having a cronjob will do but i thought of getting it clarified for the inbuilt options if any.