Laravel Schedule Task输出

时间:2018-09-10 08:31:27

标签: laravel

根据文档https://laravel.com/docs/5.5/scheduling#task-output

$schedule->command('emails:send')->daily()->sendOutputTo($filePath);

我设置了文件路径

$schedule->command('word:day')->hourly()->appendOutputTo(storage_path('logs/test_logos.log')); 

但是日志文件为空?无法看到任务输出

命令代码

public function handle()
{
 $this->info('Word of the Day sent to All Users');
}

0 个答案:

没有答案