Raven-php is a PHP client for Sentry. This module allows for integration of Raven-php client into Drupal.
Sentry is a realtime event logging and aggregation platform. It specializes in monitoring errors and extracting all the information needed to do a proper post-mortem without any of the hassle of the standard user feedback loop.
This module logs errors in a few ways:
- Register error handler for uncaught exceptions
- Register error handler for php errors
- Register error handler for fatal errors
- Handle watchdog messages
You can choose which errors you want to catch by enabling desired error handlers and select error levels.
Download and install the Libraries API 2 module and the Raven-php module as normal. Then download the Raven-php client library.
Unpack and rename the library directory to "raven" and
place it inside the sites/all/libraries
directory.
Make sure the path to the library files
becomes like this: sites/all/libraries/raven/lib/Raven/Client.php
.
- The Raven-php client library
installed in
sites/all/libraries
- Libraries API 2
You can attach an extra information to error reports (logged in user details,
modules versions, etc). See raven.api.php
for examples.
This project was sponsored by Seenta.