Overview
This module integrates Drupal with the fantastic Monolog library by Seldaek to provide a better logging solution. Some of the benefits of using this module are as follows:
- Configurable logging levels
- A multitude of handlers
- All the power and flexibility of Monolog
The Monolog module also has full watchdog integration, so it works with core and contributed modules out of the box.
Installation
The monolog library is the only requirement and can be installed by using composer.
Usage
See README.md.
The Drupal Monolog module will override core Drupal logging behaviors. To still use Drupal loggers (logger tagged services) such as Watchdog or contributed modules, you need to add them to this module configuration; see the "Log to database" topic in the readme.
Monolog 2.x requires PHP 7.4 or PHP 8.0.x and Drupal 8 or Drupal 9.
Monolog 3.x requires PHP 8.1.x and Drupal 10.
Project information
- Project categories: Developer tools, Integrations
10,314 sites report using this module
- Created by cpliakas on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


