public function Drupal8::watchdog in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::watchdog()
- 3.x api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::watchdog()
1 call to Drupal8::watchdog()
- Drupal8::debug in api/
src/ Framework/ Drupal8.php
File
- api/
src/ Framework/ Drupal8.php, line 280
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function watchdog($message, $severity = 5) {
if ($severity == WATCHDOG_ERROR) {
\Drupal::logger('realistic_dummy_content_api')
->error($message);
}
else {
\Drupal::logger('realistic_dummy_content_api')
->notice($message);
}
}