Laravel Schedule Task Output

只愿长相守 提交于 2021-01-29 12:39:29

问题


As per documentation https://laravel.com/docs/5.5/scheduling#task-output

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

I set the file path

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

But log file is empty? Cant see task output

Command Code

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

来源:https://stackoverflow.com/questions/52253846/laravel-schedule-task-output

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!