Craft\Import_HistoryService::log PHP Method

log() public method

Add to log.
public log ( integer $history, integer $line, array $errors ) : array
$history integer
$line integer
$errors array
return array
    public function log($history, $line, array $errors)
    {
        if ($this->findHistoryById($history)) {
            $log = $this->getNewImportLogRecord();
            $log->historyId = $history;
            $log->line = $line + 2;
            $log->errors = $errors;
            $log->save(false);
        }
        return $errors;
    }