You are here

public function Framework::watchdog in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::watchdog()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::watchdog()

Logs something to the watchdog.

See watchdog() for more details on this function.

Parameters

mixed $message: A message to log.

int $severity: The litteral severity as defined in: https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watc..., The default being WATCHDOG_NOTICE or 5. We cannot use the constants here because PHPUnit and Drupal 8 do not know about them.

Overrides FrameworkInterface::watchdog

1 method overrides Framework::watchdog()
Drupal8::watchdog in api/src/Framework/Drupal8.php
Logs something to the watchdog.

File

api/src/Framework/Framework.php, line 308

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function watchdog($message, $severity = 5) {
  return $this
    ->implementor()
    ->watchdog($message, $severity);
}