Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Logviewer Laravel Package

endanguyen/laravel-logviewer

Laravel 5/4.2 and Lumen log viewer. Install via Composer, register the service provider, and add a route to LogViewerController to browse local log files in the browser. No public assets or vendor routes; works with and without log rotation.

View on GitHub
Deep Wiki
Context7

Laravel 5 log viewer (Clone from https://github.com/rap2hpoutre/laravel-log-viewer/issues/137)

Packagist Packagist Packagist Scrutinizer Code Quality Build Status Codacy Badge Author

TL;DR

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

EndaLogView\LaravelLogViewer\LaravelLumenLogViewerServiceProvider::class,

Add a route in your web routes file:

Route::get('logs', '\EndaLogView\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="EndaLogView\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

Install (Lumen)

Install via composer

composer require endanguyen/laravel-logviewer

Add the following in bootstrap/app.php:

$app->register(\EndaLogView\LaravelLogViewer\LaravelLogViewerServiceProvider::class);

Explicitly set the namespace in app/Http/routes.php:

$app->group(['namespace' => '\EndaLogView\LaravelLogViewer'], function() use ($app) {
    $app->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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime