WatchdogAdapter.php in DB Maintenance 2.0.x
Same filename and directory in other branches
WatchdogAdapter class.
Namespace
Drupal\db_maintenance\Module\CommonFile
src/Module/Common/WatchdogAdapter.phpView source
<?php
/**
* @file
* WatchdogAdapter class.
*/
namespace Drupal\db_maintenance\Module\Common;
use Psr\Log\LogLevel;
/**
* WatchdogAdapter class.
*/
class WatchdogAdapter {
/**
* Simulates D7 watchdog function.
*/
public static function watchdog($type, $message, $variables = array(), $severity = LogLevel::NOTICE) {
\Drupal::logger($type)
->log($severity, $message, $variables);
}
}
Classes
Name | Description |
---|---|
WatchdogAdapter | WatchdogAdapter class. |