function DrupalBoot7::add_logger

8.0.x DrupalBoot7.php DrupalBoot7::add_logger()
7.x DrupalBoot7.php DrupalBoot7::add_logger()
master DrupalBoot7.php DrupalBoot7::add_logger()

File

lib/Drush/Boot/DrupalBoot7.php, line 32

Namespace

Drush\Boot

Class

DrupalBoot7

Code

function add_logger() {
  // If needed, prod module_implements() to recognize our system_watchdog() implementation.
  $dogs = drush_module_implements('watchdog');
  if (!in_array('system', $dogs)) {
    // Note that this resets module_implements cache.
    drush_module_implements('watchdog', FALSE, TRUE);
  }
}