class WatchdogAdapter in DB Maintenance 8
Same name and namespace in other branches
- 2.0.x src/Module/Common/WatchdogAdapter.php \Drupal\db_maintenance\Module\Common\WatchdogAdapter
WatchdogAdapter class.
Hierarchy
- class \Drupal\db_maintenance\Module\Common\WatchdogAdapter
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\CommonView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WatchdogAdapter:: |
public static | function | Simulates D7 watchdog function. |