Issue Details (XML | Word | Printable)

Key: CRM-5130
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Minor Minor
Assignee: Rahul Bile
Reporter: Tom Kirkpatrick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
CiviCRM

Ability to use Drupal's watchdog for for CiviCRM error messages

Created: 25/Sep/09 05:40 PM   Updated: 23/Nov/09 12:30 PM
Component/s: Core CiviCRM
Affects Version/s: 3.0
Fix Version/s: 3.1

Time Tracking:
Not Specified

File Attachments: 1. Text File civicrm_3.0-beta5-watchdog.patch (4 kB)



 Description  « Hide
Currently, CiviCRM writes it's debugging messages to a text file on the system, which is perhaps not the easiest thing to monitor for some people. The attached patch introduces a new settings on the /civicrm/admin/setting/debug page, which allows Drupal users to also channel CiviCRM's error/debugging messages through the Drupal watchdog. The option will only appear on the debugging settings page if Drupal is being used as the framework. If enabled, messages are written to the druapl watchdog with the WATCHDOG_DEBUG level. It would be nice to be able to use different error levels for different types of messages (eg. fatal = WATCHDOG_ERROR), but I'll leave that as an extension project :)

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Donald A. Lobo added a comment - 08/Oct/09 05:19 AM

thanx for the patch

Yashodha Chaku added a comment - 09/Nov/09 06:30 AM
assigning for 3.1 verification

Rahul Bile added a comment - 23/Nov/09 12:30 PM
Checked in r- 25215