JS Error Logger for Drupal5 pre-release

This is a pre-release of a Drupal 5 module which allows you to record JavaScript errors from visitors either to the Drupal log, or (if you're really keen to hear about it!) have immediate notifications sent by email.

On the Paper Fish website, we use jCarousel to display a carousel of similar products. It works really well, but for some Safari users it gave a strange error, which was proving hard to reproduce on our test machines. In order to leverage the users visiting the site in order to test the system more completely, we produced this module.

If a visitor's browser has a JS error, it calls window.onerror(), which we redefine with a function that makes a POST to a Drupal path that will record the error message and some other forensic data, and optionally email you to let you know.

Feedback welcome!

Readme:

Description
-----------
This module allows you to enable logging (via watchdog or email) of JavaScript
errors experienced by visitors to your site.


Dependencies
------------
Drupal's default jQuery installation, or better. And Javascript on the client!


Installation
------------
1) Place this module directory in your modules folder (this will usually be
"sites/all/modules/").

2) Enable the module.

3) Configure the logging settings at ?q=admin/settings/jserrorlog


Usage
-----
See http://www.giantrobot.co.nz/blog/js-error-logger-drupal5-pre-release


Author
------
Chris Burgess

* mail: <use contact form here>
* website: http://www.giantrobot.co.nz

The author can be contacted for paid customizations of this module as well as
Drupal consulting, development and installation.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code> <br> <h2> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.