public function RealisticDummyContentDrushLog::log in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentDrushLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDrushLog::log()
- 7.2 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 = []) {
// @phpstan-ignore-next-line
\Drupal::logger("realistic_dummy_content_api")
->notice(dt($text, $vars));
}