rap2hpoutre/laravel-log-viewer


dromedary_camel Laravel log viewer

License: MIT

Language: PHP

Keywords: laravel, laravel-log-viewer, log, log-viewer, lumen, php


Laravel log viewer

Packagist Packagist Packagist Scrutinizer Code Quality Build Status Codacy Badge Author

TL;DR

Log Viewer for Laravel 5, 6 (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:

capture d ecran 2014-12-01 a 10 37 18

Install (Laravel)

Install via composer

composer require rap2hpoutre/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@index');

Go to http://myapp/logs or some other route

Optionally publish log.blade.php into /resources/views/vendor/laravel-log-viewer/ for view customization:

php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

Install (Lumen)

Install via composer

composer require rap2hpoutre/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');
});

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.

Project Statistics

Sourcerank 14
Repository Size 141 KB
Stars 2,219
Forks 248
Watchers 61
Open issues 14
Dependencies 4
Contributors 41
Tags 69
Created
Last updated
Last pushed

Top Contributors See all

Raphaël Huchet Elminson De Oleo Baez apreiml Limon Monte Iftekhar Rifat Scrutinizer Auto-Fixer Ricardo Cino Rob Savaş KARTAL Micheal Mand Anthony Porthouse Andrew Huggins Oliver Kaufmann Aft Abdelrahman Omran Rafael Beckel Susan Buck Eric Blount ikeedo Jordan Hall

Packages Referencing this Repo

rap2hpoutre/laravel-log-viewer
A Laravel log reader
Latest release v1.3.2 - Updated - 2.22K stars

Recent Tags See all

v1.3.2 September 04, 2019
v1.3.1 August 19, 2019
v1.3.0 August 19, 2019
v1.2.1 June 12, 2019
v1.2.0 May 31, 2019
v1.1.1 March 02, 2019
v1.1.0 February 27, 2019
v1.0.0 January 02, 2019
v0.22.1 October 01, 2018
v0.22.0 September 05, 2018
v0.21.0 August 21, 2018
v0.20.0 August 18, 2018
v0.19.1 July 17, 2018
v0.19.0 July 17, 2018
v0.18.1 July 17, 2018

Interesting Forks See all

wangkaibo/laravel-log-viewer
dromedary_camel Laravel 5 log viewer
PHP - Last pushed - 2 stars - 1 forks
rtconner/laravel-log-viewer
dromedary_camel Laravel 5 log viewer
PHP - MIT - Last pushed - 2 stars
educarlabs/laravel-log-viewer
dromedary_camel Laravel 5 log viewer
PHP - Last pushed - 2 stars
FaustineD/laravel-log-viewer
dromedary_camel Laravel 5 log viewer
PHP - MIT - Updated - 1 stars
jeremykenedy/laravel-log-viewer
dromedary_camel Laravel 5 log viewer
PHP - MIT - Last pushed - 1 stars - 1 forks

Something wrong with this page? Make a suggestion

Last synced: 2019-11-14 04:58:00 UTC

Login to resync this repository