public function RealisticDummyContentDrushLog::log in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentDrushLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDrushLog::log()
- 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\includesCode
public function log($text, $vars = array()) {
drush_log(dt($text, $vars), 'ok');
}