PSR-3 Watchdog
Categories
Component ID
1964674
Component name
PSR-3 Watchdog
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
2552
Component created
Component changed
Component body
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.
