----- Original Message ----- From: "Gordon Stewart" To: <php-list@yahoogroups.com> Sent: Thursday, September 25, 2008 8:11 AM Subject: Re: [php-list] Rolling Road Log
> Personally, I have rolling logs - Not based on KB size -0 But based on > time.... > > > /logs/ <<< Basic log directory > > Then My main/central log script creates a subdirectory based on date... > > /logs/20080925/ (25th Sep 08) > > Then I store the logs in the new directory... (automatically creates > a directory as each day passes....) > > - all using various date() calculations.... > > Some logs I have AM/PM > > /logs/20080925/logname.AM > /logs/20080925/logname.PM (change "logname" to whatever you want... ) > > & I have logs in 12 hour shifts :) > > Some I do on an hourly basis, Some every 3 hours (A little loop / > calculation on the Hour of day...) > > It all depends on what you need to log & if / why you want to refer to > it later.... > > Ive got lots of logs - But I never seem to look at any of them... :) > - Oneday I'll do a log-viewer, to view my logs in an easy to read > fashion... > > (plus - Putting all my logs in a central directory - If I want to > delete the older ones - I can easily locate them , & rename/move them > to a "delete" directory... ) > > - Ive also got a built-in delete function in my 5-minute cron job - I > can move everything to a single directory (easy / quick) - & let the > cron job do it for me - instead of waiting & waiting to delete via > FTP)... Hi Gordon, Thanks for your reply. Some great ideas that I'll keep as reference. Thanks, Bob E.