Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FormController extends Controller
- {
- public function index(Request $request)
- {
- Log::channel('stderr')->info('LOGGING TEST FROM CONTROLLER'); // This works perfectly as expected, i.e. visible with `docker-compose logs` command on the Host!
- }
- }
- class SendMailJob implements ShouldQueue
- {
- public function handle()
- {
- Log::channel('stderr')->info('LOGGING TEST FROM JOB'); // This doesn't work X(
- }
- }
- [program:form]
- command=php /usr/local/laravel/artisan queue:work database --sleep=3 --tries=3
- user=www-data
- environment=HOME="/home/www-data",USER="www-data"
- autostart=true
- numprocs=2
- stdout_logfile=/dev/stdout
- stdout_logfile_maxbytes=0
- stderr_logfile=/dev/stderr
- stderr_logfile_maxbytes=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement