jsocha/logs-viewer

Simple logs viewer for Laravel

2.0 2017-07-14 06:58 UTC

This package is auto-updated.

Last update: 2024-11-10 09:29:56 UTC


README

Packagist License Latest Stable Version Total Downloads

Laravel Logs Viewer

Simple parsing Laravel Logs inspired by rap2hpoutre with some upgrades

Installation

Require this package with composer:

composer require jsocha/logs-viewer dev-master

After updating composer add service provider in config/app.php

Jsocha\LogsViewer\LogsViewerServiceProvider::class,

You need to change APP_LOG in .env file to

APP_LOG=daily

After that just add in routes/web.php

Route::get('devs/logs', '\Jsocha\LogsViewer\LogsViewerController@index')->name('logs.viewer');

To see logs go to:

http://example.com/devs/logs

Of course you can change this route path for what you need.

##Warning This package has not any permission protection. You should protect this route with some kind of middleware which allow access only to specific user.