This project is not covered by Drupal’s security advisory policy.

Drupal 8 implements the PSR-3 Logger Interface Standard by default.

PSR-3 Watchdog is a wrapper for drupal 7's watchdog logger that implements the PSR-3 Logger Interface.

Using this module you can integrate third party libraries that support PSR-3 logging without the need for a different logger than the already existing watchdog.

Installation

The PSR-3 Watchdog requires the psr/log package. Therefor it depends on Composer Manager to resolve this dependency. Just follow the installation instructions of that module.

Usage for developers

composer_manager_register_autoloader();
$logger = new Psr3Watchdog();
$yourPSR3LoggerAwareClass->setLogger($logger);

Usage for site administrators

Adjust the minimal severity level for this logger at /admin/config/development/psr3_logger to prevent third party libs from filling your watchdog with notices or debug messages.

Supporting organizations: 

Project information

Releases