maxsky/lumen-log-viewer

A Lumen log reader

Installs: 2 878

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 375

Type:laravel-package

v1.3.0 2019-09-18 05:52 UTC

README

Badge Build Status codecov Author

What is this?

Small log viewer for lumen. Looks like this:

screenshot

Install

Install via composer

composer require maxsky/lumen-log-viewer

Add Service Provider to app/Providers/AppServiceProvider.php

$this->app->register(\LumenLogViewer\Providers\LumenLogViewerServiceProvider::class);

Add a route in your web routes file, like this:

/** @var Laravel\Lumen\Routing\Router $router */
$router->group(['namespace' => '\LumenLogViewer\Controllers'], function () use ($router) {
    $router->get('logs', 'LogViewerController@index');
});

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

Optionally copy vendor/maxsky/lumen-log-viewer/views/logviewer.blade.php into /resources/views/vendor/lumen-log-viewer/ for view customization: