Hello,
Recently, I'm looking for a module to be able to delete some kind of log messages in watchdog.
Such as deleteting old 'page not found', 'php' messages, but keep user and content messages which are useful always.
Is this possible to be involved in this module?
BTW, add another userful and common function.
/**
* Help function for getting vocabulary by name.
* @param:
* $vocabulary_name -- human name
* @return:
* $vocab_object -- object
*/
function kaixin_get_vocabulary_by_name($vocabulary_name) {
$vocabs = taxonomy_get_vocabularies(NULL);
foreach ($vocabs as $vocab_object) {
if ($vocab_object->name == $vocabulary_name) {
return $vocab_object;
}
}
return NULL;
}
Comments
Comment #1
thekevinday commentedSorry for the delay, I overlooked this post.
I should be able to look into adding this support, or at least a bare-bones version of "granulary log clearing".
One of my biggest problems with the logger is that cronjob tends to overflow the log. (I run my cronjobs very often so I can have relatively accurate time-based events).
I will research the taxonomy functionality as well.
If drupal core is missing (and that sounds right), then I will add it to CF.
I distantly remember having to repeatedly write functions to pull taxonomy specific stuff, this function of yours is probably one of them.
Comment #2
Leeteq commentedThis would be very useful, especially if done in a way where we could define custom filters, potentially through the views module?
For example: select all "page not found" entries related to a specific URL and delete just them. Or delete entries matching the filter older than N days, etc. Further potential through the views module: gather some statistics before deleting them, such as count the current filter matches by month, etc.
Comment #3
thekevinday commentedI accidentally noticed today that drush has code to delete individual watchdog messages.
Perhaps I can just pull that code into cf.
Comment #4
thekevinday commentedThis will be worked on in 7.x-2.x-dev.
This has been rather low priority for me and I have not heard a response from the requestor in a while.
But I do believe the ability to manage the watchdog reports to be of importance.
Particularly, since the cf_error module is based around watchdog reporting.
Comment #5
thekevinday commentedI have fallen very far behind on this and at the moment accessibility matters has taken priority.
So I am officially postponing this until I can come back to this.
Patches are welcome for review.
Comment #6
thekevinday commentedI never got to this and I doubt I will, so closing as won't fix.