JS Watchdog

Component ID

1801568

Component name

JS Watchdog

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

813

Component created

Component changed

Component body

JS Watchdog provides Drupal.watchdog() in Javascript to log errors to the database.

JS Watchdog is a utility module. Only install it if you are programming Javascript code that will call Drupal.watchdog() or another module requires it.

Security

This module includes both client-side and server-side flood control to prevent (respectively);

  1. Infinite loops flooding the log
  2. Malicious users abusing your database

Usage

The parameters for Drupal.watchdog() are exactly the same as the PHP counterpart, watchdog().

Drupal 7

Drupal 7 ports would be fairly trivial. Patches are welcome.

Alternatively there is a similar Drupal 7 sandbox module with an email feature but no flood control, called jDog.

Drupal 8

JS Watchdog will not be ported to Drupal 8. See the issue queue instead:

  1. #1419652: JavaScript logging and error reporting
  2. #727278: Add watchdog interface for javascript code to use

Commercial support

The author of this module is available for hire. Contact Bevan.