B
B
BonBon Slick2017-03-10 00:19:01
Laravel
BonBon Slick, 2017-03-10 00:19:01

How to output logs to a new file?

protected function schedule(Schedule $schedule)
    {
        $schedule->call(function () {
        // Report to file
       \Storage::prepend('file.log', 'Prepended Textttttttttttt');
    })
        ->everyMinute();
    }

I do not understand why it does not write to the file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2017-03-13
@BonBonSlick

https://laravel.com/docs/5.4/errors#logging
And read about the configuration at the top

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question