Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

jDog unleashes the Drupal watchdog in jQuery.

jDog gives you all the advantages of watchdog recording plus email notifications direct in your jQuery and Javascript using a jQuery Ajax call to send the data back to your Web server.

jDog is currently in use at several Web sites and has an administration settings page. The documentation is at petermoulding.com/jdog.

The module is under the Coder thumb and up for review as a full project. What I really need is feedback on the documentation. Does it explain exactly what you have to do to make the jdog function work. I assume only the following:

  • You know some Javascript. I assume you are already writing Javascript and jQuery and want to add logging.
  • You have installed modules.
  • You have configured modules in admin pages.
  • You know the watchdog report.
  • If you use the email option, you already have Drupal site email working.

Use case

jDog was developed for monitoring new modules when first released, similar to the use of the Devel module. As an administrator, you switch jDog on, watch during the quality assurance phase, then switch jDog off.

Performance

The people using jDog tend to use the email option during the QA phase and email has overheads. Start with the normal watchdog notice until the message flow dies down then switch to email.

Security

Security was raised as an issue. The security risk is the same as any other admin test tool. Switch it on only when needed.

Long term development

For my next development project requiring a jDog style function, I will look at jDog wrapped around a backport of D8 code.

Drupal 8

Drupal 8 will include something but the use cases are not fully defined. Currently the main D8 use case looks like a generic watchdog only function for use by any code any time and is not aimed at developers releasing modules.

The D8 version looks like being a watchdog only approach and you will have to add something else to produce email alerts from the watchdog queue plus something else to send email direct.

Drupal 6

Drupal 6 alternative: http://drupal.org/project/jswatchdog (designed for a different use case)

Project Information