elkadrey/laravel-log-viewer
Laravel log viewer
TL;DR
Log Viewer for Laravel 5, 6, 7 & 8 (still compatible with 4.2 too) and Lumen. Install with composer, create a route to LogViewerController. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's Laravel 4 log viewer (works only with laravel 4.1)
What ?
Small log viewer for laravel. Looks like this:

Install (Laravel)
Install via composer
composer require elkadrey/laravel-log-viewer
Add Service Provider to config/app.php in providers section
Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
Add a route in your web routes file:
Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
Go to http://myapp/logs or some other route
Install (Lumen)
Install via composer
composer require elkadrey/laravel-log-viewer
Add the following in bootstrap/app.php:
$app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class);
Explicitly set the namespace in app/Http/routes.php:
$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
$router->get('logs', 'LogViewerController@index');
});
Advanced usage
Customize view
Publish log.blade.php into /resources/views/vendor/laravel-log-viewer/ for view customization:
php artisan vendor:publish \
--provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
--tag=views
Edit configuration
Publish logviewer.php configuration file into /config/ for configuration customization:
php artisan vendor:publish \
--provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider"
Troubleshooting
If you got a InvalidArgumentException in FileViewFinder.php error, it may be a problem with config caching. Double check installation, then run php artisan config:clear.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.2.1 | >=5.4.0 | >=4.2 < 13 | MIT | |
| v2.2.0 | >=5.4.0 | >=4.2 <= 12 | MIT | |
| v2.1.0 | >=5.4.0 | 4.2.*| | MIT | |
| v2.0.4 | >=5.4.0 | 4.2.*| | MIT | |
| v2.0.3 | >=5.4.0 | 4.2.*| | MIT | |
| v2.0.2 | >=5.4.0 | 4.2.*| | MIT | |
| v2.0.1 | >=5.4.0 | 4.2.*| | MIT | |
| v2.0.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.7.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.6.1 | >=5.4.0 | 4.2.*| | MIT | |
| v1.6.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.5.2 | >=5.4.0 | 4.2.*| | MIT | |
| v1.5.1 | >=5.4.0 | 4.2.*| | MIT | |
| v1.5.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.4.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.3.3 | >=5.4.0 | 4.2.*| | MIT | |
| v1.3.2 | >=5.4.0 | 4.2.*| | MIT | |
| v1.3.1 | >=5.4.0 | 4.2.*| | MIT | |
| v1.3.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.2.1 | >=5.4.0 | 4.2.*| | MIT | |
| v1.2.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.1.1 | >=5.4.0 | 4.2.*| | MIT | |
| v1.1.0 | >=5.4.0 | 4.2.*| | MIT | |
| v1.0.0 | >=5.4.0 | 4.2.*| | MIT | |
| v0.22.1 | >=5.4.0 | 4.2.*| | MIT | |
| v0.22.0 | >=5.4.0 | 4.2.*| | MIT | |
| v0.21.0 | >=5.4.0 | 4.2.*| | MIT | |
| v0.20.0 | >=5.4.0 | 4.2.*| | MIT | |
| v0.19.1 | >=5.4.0 | 4.2.*| | MIT | |
| v0.19.0 | >=5.4.0 | 4.2.*| | MIT |
Showing the latest 30 of 85. See every release on Packagist

