Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

crossrt's avatar

Laravel Forge queue is not logging properly.

I'm using Laravel Forge and setup a queue with the panel. I can see there is a log file in /home/forge/.forge/worker-xxxxxx.log. But it's weird because got no any message log into the file.

I expect it would be something like running php artisan queue:listen on local, logging something like:

[2019-03-26 10:11:08][iMBQuJstKq1b0dRkZC2L0w22NTozoT0Z] Processing: App\Jobs\SendMatchNotificationJob
[2019-03-26 10:11:09][iMBQuJstKq1b0dRkZC2L0w22NTozoT0Z] Processed:  App\Jobs\SendMatchNotificationJob

it's great to tell whether the job is running properly or not. Is there anything I need to configure in Laravel Forge?

0 likes
3 replies
crossrt's avatar

I found the answer myself. It's not because of supervisor configuration, it's because the queue:work running in quiet mode.

  1. I run ps aux | grep "queue"
  2. I saw php PATH_TO_ARTISAN queue:work redis --sleep=0 --daemon --quiet --queue=default, which indicates it's running in quiet mode.

So, I might need to figure out how to run the queue in logging mode.

1 like
crossrt's avatar
crossrt
OP
Best Answer
Level 1

Finally I found the solution to log my queue worker. Unfortunately, I can't do it directly in Laravel Forge panel, because I don't see any configuration for it.

So here's my solution:

  1. edit supervisor configuration directly by sudo nano /etc/supervisor/conf.d/worker-XXXXXX.conf
  2. reload supervisor by sudo supervisorctl update
  3. check the queue now, it should running without --quiet mode.

And the queue will logging now. Cheers!

5 likes
nbarshain's avatar

@crossrt So clutch. Every time I start a new queue worker, I come here to set up the logging. I don't understand why this isn't the default behavior, or why there isn't an option in Forge.

3 likes

Please or to participate in this conversation.