Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Error Log

Security covered Under active development 718 sites

This module restores PHP's error logging functionality within Drupal, ensuring that errors caught by PHP are also recorded in the logs or console that were active before Drupal began its bootstrap process. This provides a straightforward way to capture these errors alongside Drupal's own logging.

Once Drupal bootstraps, it stops sending errors to PHP's error log — which could be the web server error log, syslog or stderr on the command line. Error Log module adds the PHP error log as a Drupal logger implementation, so errors will once again appear in the same log or console that they appeared in before Drupal bootstrapped.

Because Drupal ≥8 does log some critical/fatal errors to PHP's error log, redundant log messages may appear in some circumstances. Drush provides its own console logger; Error Log module is therefore not active in the Drush environment unless the PHP error_log configuration directive is set.

Similar modules:

Logging and Alerts has a similar errorlog (web server logging) module, but unfortunately it calls the theme() and t() functions, which should not be called by a logger, and does not fully clean up HTML-encoded exception messages. Monolog is a much more powerful solution for logging to the error log or elsewhere. The only advantage of Error Log module is bare bones simplicity. (This module can actually be used with Monolog by enabling the drupal.error_log handler.)

Credits:

Created and maintained by mfb – you can support development by contributing or sponsoring.

Drupal 11 · not 10

Ask your assistant about Error Log

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Jan 2023
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.16 Stable 8–11 Jul 3, 2026
2.0.0 Stable 11 Jul 3, 2026
8.x-1.15 Stable 8–11 Aug 19, 2025
8.x-1.14 Stable 8–11 May 22, 2024
8.x-1.13 Stable 8–10 Apr 11, 2024
8.x-1.12 Stable 8–10 Jan 22, 2023
8.x-1.11 Stable 8–10 Jan 20, 2023