Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. class FormController extends Controller
  2. {
  3. public function index(Request $request)
  4. {
  5. Log::channel('stderr')->info('LOGGING TEST FROM CONTROLLER'); // This works perfectly as expected, i.e. visible with `docker-compose logs` command on the Host!
  6. }
  7. }
  8.  
  9. class SendMailJob implements ShouldQueue
  10. {
  11. public function handle()
  12. {
  13. Log::channel('stderr')->info('LOGGING TEST FROM JOB'); // This doesn't work X(
  14. }
  15. }
  16.  
  17. [program:form]
  18. command=php /usr/local/laravel/artisan queue:work database --sleep=3 --tries=3
  19. user=www-data
  20. environment=HOME="/home/www-data",USER="www-data"
  21. autostart=true
  22. numprocs=2
  23. stdout_logfile=/dev/stdout
  24. stdout_logfile_maxbytes=0
  25. stderr_logfile=/dev/stderr
  26. stderr_logfile_maxbytes=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement