You are here

public static function WatchdogAdapter::watchdog 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::watchdog()

Simulates D7 watchdog function.

1 call to WatchdogAdapter::watchdog()
DbHandler::optimizeTables in src/Module/Db/DbHandler.php
Performs the maintenance.

File

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

Class

WatchdogAdapter
WatchdogAdapter class.

Namespace

Drupal\db_maintenance\Module\Common

Code

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