You are here

class WatchdogAdapter in DB Maintenance 8

Same name and namespace in other branches
  1. 2.0.x src/Module/Common/WatchdogAdapter.php \Drupal\db_maintenance\Module\Common\WatchdogAdapter

WatchdogAdapter class.

Hierarchy

Expanded class hierarchy of WatchdogAdapter

2 files declare their use of WatchdogAdapter
DbHandler.php in src/Module/Db/DbHandler.php
DbHandler class.
PrefixHandler.php in src/Module/Db/PrefixHandler.php
PrefixHandler class.

File

src/Module/Common/WatchdogAdapter.php, line 15
WatchdogAdapter class.

Namespace

Drupal\db_maintenance\Module\Common
View source
class WatchdogAdapter {

  /**
   * Simulates D7 watchdog function.
   */
  public static function watchdog($type, $message, $variables = array(), $severity = LogLevel::NOTICE) {
    \Drupal::logger($type)
      ->log($severity, $message, $variables);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
WatchdogAdapter::watchdog public static function Simulates D7 watchdog function.