Hey there, nice idea.

Is it feasible to add options into Rawlog to let the administrator chose how logging is done, like Daily, Hourly, Weekly... Sometimes we have sites so large, we need to dive in and find the error rather quickly. I know for a few sites we have hourly logs would be good (daily log would be quite large).

Comments

vito_a’s picture

Assigned: Unassigned » vito_a

Hi,

thank you :)

Yes, it is a good idea to add the time period, I was thinking about it also. I'm planning to add it in the one of the 1.x versions. However seems that there are also some details needed to consider.

Can you add some details please concerning the logging behaviour you need - should the hourly/daily/weekly logs be placed in the separate files with the names like "rawlog-15_03_2010-14_00-15_00.log"?

Seems that there may be much of these files soon so it is needed to add some sort archiving queue to it, hook_cron etc. Concerning the old files removing, I was thinking about sending old logs to the administrator email then removing these, so these won't be wiped at all without any trace. Also seems that we will need to have a possibility to customize the file names date and time format etc, so seems it will take some time to consider all details.

Thank you for your feedback. I was considering the list of options needed to add, now I'll place the time periods first in the list :)

Can you add some details please concerning the logging behaviour you need - the files saving, date and time format, file archiving and removing queue, etc. points?

Thank you,
Vito

kevinquillen’s picture

I think that could be totally subjective to the end user, like the name of the file. That could be configurable. Personally I'd have my filename as year-d-m_filename.log, but someone else may prefer another way.

I also think it's probably a good idea to tar old logs and send them to an email address before deleting them.

vito_a’s picture

Version: 6.x-1.0 » 6.x-1.1
Assigned: vito_a » Unassigned
Status: Active » Fixed

Logs rotation added in version 1.1.

vito_a’s picture

Hourly log rotation option added in rawlog 6.x-1.2 http://drupal.org/node/775910 .

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.