RealisticDummyContentDrushLog.php in Realistic Dummy Content 3.x
File
api/src/includes/RealisticDummyContentDrushLog.php
View source
<?php
namespace Drupal\realistic_dummy_content_api\includes;
class RealisticDummyContentDrushLog implements RealisticDummyContentLogInterface {
public function log($text, $vars = []) {
\Drupal::logger("realistic_dummy_content_api")
->notice(dt($text, $vars));
}
public function error($text, $vars = []) {
$this
->log('RealisticDummyContent_FAILURE');
throw new \Exception('RealisticDummyContent_ERROR ' . dt($text, $vars));
}
}