You are here

public function RealisticDummyContentDrushLog::log in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentDrushLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDrushLog::log()
  2. 3.x api/src/includes/RealisticDummyContentDrushLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDrushLog::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

1 call to RealisticDummyContentDrushLog::log()
RealisticDummyContentDrushLog::error in api/src/includes/RealisticDummyContentDrushLog.php
Add a log entry for an error.

File

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

Class

RealisticDummyContentDrushLog
The Drush log, allows function to log messages to Drush.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function log($text, $vars = array()) {
  drush_log(dt($text, $vars), 'ok');
}