This module integrates Drupal with the Monolog library to offer a more flexible and configurable logging solution. It provides different logging levels and handlers, and integrates with Drupal's watchdog system.
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.7 and <= 10.
Monolog 3.x requires PHP 8.1.x and Drupal > 10.1.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
4 tracked projects depend on this one
- Monolog Datadog 129 sites
- Monolog elasticsearch date processor 111 sites
- Monolog Extra 47 sites
- Monolog Loki for Drupal 15 sites