Enable Verbose Mode for Laravel 4 Queue Listener

When you start the listener through php artisan queue:listen it is rather quiet, although the worker may repeat something.

Question:. How to enable these echoes on the screen, how does php artisan queue:work do it?

+6
source share
3 answers

I don’t think that listening is intended to output any result, and I don’t see anything in ListenCommand , which suppose there are even more results. However, when you ask a craftsman for help, he offers --verbose (-v) , which you could try?

 php artisan queue:listen -v 

My understanding of hearing is that it is designed to run as a background service, essentially calling queue:work several times. If you want to check if the worker is working, you simply call queue:work yourself. You probably want to add logging to your code, and then you can look in the log files.


 $ php artisan help queue:listen Usage: queue:listen [--queue[="..."]] [--delay[="..."]] [--memory[="..."]] [--timeout[="..."]] [connection] Arguments: connection The name of connection Options: --queue The queue to listen on --delay Amount of time to delay failed jobs (default: 0) --memory The memory limit in megabytes (default: 128) --timeout Seconds a job may run before timing out (default: 60) --help (-h) Display this help message. --quiet (-q) Do not output any message. --verbose (-v) Increase verbosity of messages. --version (-V) Display this application version. --ansi Force ANSI output. --no-ansi Disable ANSI output. --no-interaction (-n) Do not ask any interactive question. --env The environment the command should run under.> 
+7
source

php artisan queue:listen now prints working output to the console at startup. No detailed mode required.

0
source

Listen very quietly. Personally, I use OS X / Linux and run the following in a different terminal window to control the output.

 tail -f storage/logs/* 
0
source

All Articles