使用sendOutputTo
in task scheduling ,我们可以将任务输出存储在文件中:
$schedule->command('test')->everyMinute()->sendOutputTo(storage_path('test'));
但我不想只存储最后一次执行,我需要一个日志。如何在单个文件中记录计划任务输出?
最佳答案
appendOutputTo
不是您要查找的内容吗?
$schedule->command('test')->everyMinute()->appendOutputTo(storage_path('test'));
关于php - 在任务调度中追加输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31318884/