I'm redirecting all docker logs to google stackdriver, but when I redirect something to /dev/null I spect to not see it in the stackdriver.
This is my current /etc/docker/daemon.json
content:
{"live-restore": true,"storage-driver": "overlay2","log-driver":"gcplogs"}
This is my supervisor program to start horizon:
[program:horizon]
command = php /var/www/artisan horizon
stdout_logfile = /dev/null
stdout_logfile_maxbytes = 0
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes = 0
user = root
autostart = true
autorestart = true
priority = 3000
And this is how I call the scheduler:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
But they still sended to stackdriver
How to disable this schedulers logs? (only them, not the rest of usefull logs)
[EDIT]
The log level will not change the output of the jobs being processed. There is an request asking for that https://github.com/laravel/ideas/issues/1516
The logs of the provided print screen are made by the Laravel horizon and not by the scheduler and supervisor as I was thinking. To suppress the horizon logs it need to be started with --quiet
flag.