Javascript Error Logger

Categories

Component ID

342959

Component name

Javascript Error Logger

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

684

Component created

Component changed

Component body

This module provides error logging for client-side JS errors on your site. It does so by using Javascript's window.onerror and jQuery's $.post() to a Drupal path which can record the error details to your Drupal log or email.

The advantage of this approach is that you can leverage your site's userbase to obtain useful JS error reports across a wider variety of browser configurations than might be available to your development team.

This module depends on the builtin jQuery functionality in Drupal.

Notes:

  • You will want to be circumspect about using email as your log method :)