Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

Error Log

706 sites Security covered
View on drupal.org

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.

Activity

Total releases
3
First release
Aug 2025
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
8.x-1.16 Stable Jul 3, 2026
2.0.0 Stable Jul 3, 2026
8.x-1.15 Stable Aug 20, 2025