Module Description
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 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.
Because Drupal ≥8 does log some 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.
Module Link
Project Usage
581
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Error Log module adds the PHP error log as a Drupal logger implementation to display errors in the same log or console that they appeared in before Drupal bootstrapped.
Data Name
error_log