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.
Project information
- Module categories: Developer Tools, Integrations
- 4 sites report using this module
- Created by mkalkbrenner on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.