Viewing of log files in the laravel is always a tedious part if you run into some issues and opening the log file from the stroage folder and find for the appropriate error message
If you are experiencing that kind of problems here is a package available for that, which has great UI and easy to find log
Log Channel - Stack
- Add rap2hpoutre/laravel-log-viewer into your composer.json file or run composer require rap2hpoutre/laravel-log-viewer
- Add Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index'); into your route file
- Go to http://{your-project}/logs to see your logs
- This works also for daily log channel
- Ref : https://github.com/rap2hpoutre/laravel-log-viewer
composer require rap2hpoutre/laravel-log-viewer
Log Channel - Daily
- If your are using daily log channel you can use another package which has more features than the previous one
- Add arcanedev/log-viewer into your composer.json file or run composer require arcanedev/log-viewer
- Go to http://{your-project}/log-viewer to see your logs
- Ref : https://github.com/ARCANEDEV/LogViewer
composer require arcanedev/log-viewer
No comments:
Post a Comment