Posted by sillygwailo on December 13, 2007 at 7:03pm
Jump to:
| Project: | Journal |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Implement the Watchdog hook, so that we can route where Journal messages get sent to, e.g. to the Unix Syslog but also to any module that implements log message routing.
The Watchdog hook is a feature of Drupal 6 core, but I'm putting this as a feature request against the Drupal 5-compatible of the module as well, since there is a maintained patch against the Drupal 5 trunk for the backport of the Watchdog hook.
Comments
#1
#2
I'm not sure whether we want to implement hook_watchdog(). Shouldn't we simply implement an additional call to watchdog() instead?
#3
It sounds like the feature request here is for journal to call
watchdog()to log messages. Journal would also implementhook_watchdog()which would select just those messages coming from journal and continue to log them to the journal table.With this small change, Journal will continue to operate the way it does now, but other modules will also be able to hook into the journal messages and do what they wish with them.
Actually, sun, after rereading #2, your method would provide the same functionality, but it seems a tiny bit cleaner to go the
hook_watchdog()route.#4
Reassigning back to the proper queue -- see http://drupal.org/node/26160/revisions (latest revision) for more on this.