You are here

public function RealisticDummyContentDebugLog::log in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog::log()
  2. 3.x api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog::log()

Add a log entry for normal execution.

Parameters

string $text: Text for the log entry.

array $vars: Variables to insert in the text.

Overrides RealisticDummyContentLogInterface::log

File

api/src/includes/RealisticDummyContentDebugLog.php, line 13

Class

RealisticDummyContentDebugLog
This log class can be used whenever you need to log data.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function log($text, $vars = array()) {

  // @codingStandardsIgnoreStart
  // Cannot pass a litteral to t() here.
  debug(t($text, $vars));

  // @codingStandardsIgnoreEnd
}