You are here

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

Same name and namespace in other branches
  1. 8.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::watchdog()
  2. 7.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::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.

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

File

api/src/Framework/FrameworkInterface.php, line 295

Class

FrameworkInterface
Defines and abstracts all functions which are used by our module.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function watchdog($message, $severity = 5);