3 namespace Drupal\migrate;
5 use Drupal\Core\Logger\RfcLogLevel;
8 * Defines a migrate message class.
10 class MigrateMessage implements MigrateMessageInterface {
13 * The map between migrate status and watchdog severity.
18 'status' => RfcLogLevel::INFO,
19 'error' => RfcLogLevel::ERROR,
25 public function display($message, $type = 'status') {
26 $type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
27 \Drupal::logger('migrate')->log($type, $message);