Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
vito_a CreditAttribution: vito_a commentedHi,
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
Comment #2
kevinquillen CreditAttribution: kevinquillen commentedI 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.
Comment #3
vito_a CreditAttribution: vito_a commentedLogs rotation added in version 1.1.
Comment #4
vito_a CreditAttribution: vito_a commentedHourly log rotation option added in rawlog 6.x-1.2 http://drupal.org/node/775910 .