protected writeOutput ( Illuminate\Contracts\Queue\Job $job, boolean $failed ) : void | ||
$job | Illuminate\Contracts\Queue\Job | |
$failed | boolean | |
리턴 | void |
protected function writeOutput(Job $job, $failed)
{
if ($failed) {
$this->output->writeln('<error>[' . Carbon::now()->format('Y-m-d H:i:s') . '] Failed:</error> ' . $job->resolveName());
} else {
$this->output->writeln('<info>[' . Carbon::now()->format('Y-m-d H:i:s') . '] Processed:</info> ' . $job->resolveName());
}
}