the attached patch makes dblog module to support two new hooks log_filters and log_filters_validate
this will allow other modules to provide their own filters to improve "Recent log" report filtering

as an example dblog_time_filters (also attached) is a module taking advantage of this which provides filter capability by "recent" and "aged" being both configurable (an array of integers interpreted as minutes is formated as a more readable text)
to illustrate this, the image attached shows dblog_time_filters module taking advange of log_filters and log_filters_validate

PS: this is the 6.x version of #582622: provide hook for dblog_filters

Comments

grendzy’s picture

Version: 6.14 » 8.x-dev

New features go to Drupal 8.x.

grendzy’s picture

Version: 8.x-dev » 7.x-dev
Status: Needs review » Closed (duplicate)

whoops, didn't see the link to #582622: provide hook for dblog_filters.

arhak: The usual process is that issues are addressed for the newest version of Drupal first. If it's a bug, then it can be backported to stable releases of Drupal. Backports are generally addressed in the same issue by changing the version field.

arhak’s picture

Version: 7.x-dev » 6.x-dev

well, this started as a new features being added to D6 in two ways: through modules and through patch

the patch version was a lot more clean solution, thus it was provided as a patch for D7 as well

this is just a D6 patch version for testing purposes or whatever someone might need
since the more recommended solution would be the dblog_ext module at #578488: recent/aged/username/hostname filters for log entries