Best way to read Laravel logs (PHP)

I have a Laravel application hosted on a third party server. The application is in production and generates many PHP errors daily depending on how users use it.

I need a better way to read the laravel.log file instead of doing SSH to the server and reading it through VIM.

Please consult for an even better way to read the errors in the log file.

+3


source to share


2 answers


You can use this package https://github.com/rap2hpoutre/laravel-log-viewer



I use it in my project and it is quite helpful.

+8


source


This is not the best way, but it depends on the requirement, if only the request logs need to be checked or any such small errors, then the Laravel logs are logged in \ storage \ logs \ Laravel.log You can clear this file and reload the site, all errors will be filled here again.



0


source







All Articles