Drupal PSR-3

Categories

Component ID

2417215

Component name

Drupal PSR-3

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

3190

Component created

Component changed

Component body

PSR-3 is the current standard for logging in PHP (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logg...). Watchdog makes it a bit complicated to test API level modules. This module provides a PSR-3 logging interface over watchdog that you can use in your infrastructure, so you can write unit tests independently from Drupal.

Enable

Composer is needed for the dependencies.

  • composer update
  • drush en drupal_psr3