Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Better way to read Laravel (PHP) Logs

I have an Laravel application hosted on Third Party Server. The application is in production and produces many PHP Errors daily based on how users are using it.

I want a better way to read the laravel.log file, instead of doing SSH into the Server and reading it through VIM.

Please advice on what are some other better way to read errors on log file.

like image 509
Tushar Avatar asked Jun 28 '15 06:06

Tushar


People also ask

How do I view Laravel logs?

You can see the generated log entries in storage/logs/laravel. log file.

What is log :: info in Laravel?

The Laravel logging facilities provide a simple layer on top of the powerful Monolog library. By default, Laravel is configured to create daily log files for your application which are stored in the storage/logs directory. You may write information to the log like so: Log::info('This is some useful information.

What is log channel in Laravel?

Laravel logging is based on "channels". Each channel represents a specific way of writing log information. For example, the single channel writes log files to a single log file, while the slack channel sends log messages to Slack. Log messages may be written to multiple channels based on their severity.


1 Answers

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

I am using it in my project and it's rather useful.

like image 75
Maxim Lanin Avatar answered Oct 21 '22 09:10

Maxim Lanin