Monday, April 10, 2017

Lumen Scheduler sendOutputTo and STDOUT

I am trying to setup a command to run in Kernel.php, and forward the errors to STDOUT

    $destination='php://stdout';
    $schedule->command('run:my:command')->everyMinute()
        ->runInBackground(false)->sendOutputTo($destination);

This does not seem possible....it only works, if I set $destination to a real file. Say /tmp/errors.log

But it is a requirement from our Devops, to have logging forwarded to STDOUT. How do i solve that?



via Confidence

Advertisement