Add output to task scheduling

Using sendOutputTo when planning tasks , we can save the output of the task in a file:

$schedule->command('test')->everyMinute()->sendOutputTo(storage_path('test'));

But I do not want to store only the last performance, I need a magazine. How can I register the release of a scheduled task in a single file?

+4
source share
2 answers

Not appendOutputTowhat are you looking for?

$schedule->command('test')->everyMinute()->appendOutputTo(storage_path('test'));
+11
source

You can use laravel system logs,

http://laravel.com/docs/5.1/errors#logging

or you can access Monolog and create your own journal

In this link you can see how to separate the log from several files https://laracasts.com/discuss/channels/general-discussion/advance-logging-with-laravel-and-monolog

0
source

All Articles