ralphjsmit / laravel-horizon-cron-supervisor

A modern solution for running Laravel Horizon with a CRON-based supervisor.
https://ralphjsmit.com
MIT License
51 stars 2 forks source link

Is there a way to log Horizon output? #5

Closed joyfullservice closed 1 year ago

joyfullservice commented 1 year ago

First off, thank you so much for this project! It is working great in my environment where I don't have the ability to install Supervisor on the Web server.

I am also using the https://github.com/opcodesio/log-viewer project, but noticed that I don't have a horizon.log file when using this package to run Horizon. It would be very helpful for general troubleshooting purposes to be able to see the Horizon log output.

I have done a little research on this, but I am relatively new to Laravel, so I am not sure if this is something that would be implemented as a separate log handler, or if it is just a matter of adding an output directive to the command that launches Horizon. (Or maybe I am looking in the wrong place entirely... 🤔)

ralphjsmit commented 1 year ago

Hey @joyfullservice, thanks for your message! I have never used the horizon.log file myself, but when checking the Laravel documentation, it seems this log file is really something created by Supervisor. This package only offers a workaround of Supervisor, but I don't have a way to add this log file.

Besides, I've personally never needed the horizon.log file myself, and I've set up/managed quite some Horizon instances already, so perhaps it's nevertheless more of a nice-to-have then a necessity 😊