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

Version:5.x-1.0» 6.x-1.x-dev

#2

Title:Watchdog hook implementation» Integrate with hook_watchdog

I'm not sure whether we want to implement hook_watchdog(). Shouldn't we simply implement an additional call to watchdog() instead?

#3

Project:Journal» Journal - deprecated

It sounds like the feature request here is for journal to call watchdog() to log messages. Journal would also implement hook_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

Project:Journal - deprecated» Journal
Version:6.x-1.x-dev» 6.x-1.2

Reassigning back to the proper queue -- see http://drupal.org/node/26160/revisions (latest revision) for more on this.

nobody click here