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 Log Viewer Laravel Package

dipeshshihora/laravel-log-viewer

Simple log viewer for Laravel 9–12 and Lumen. Install via Composer, add a /logs route to LogViewerController, and browse storage logs with a plain HTML UI. Optional publishing for views/config; supports patterns, multiple paths, paging, and max file size limits.

View on GitHub
Deep Wiki
Context7

Dipesh Laravel Log Viewer

Simple Log Viewer for Laravel 9, 10, 11 & 12 and Lumen. Install with composer, create a route to LogViewerController. No public assets, optional view/config publishing.

Install (Laravel)

Install via composer:

composer require dipeshshihora/laravel-log-viewer

If your app does not use package auto-discovery, add the Service Provider to config/app.php:

Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

Add a route in your routes/web.php:

use Dipesh\LaravelLogViewer\LogViewerController;

Route::get('logs', [LogViewerController::class, 'index'])->name('logs.index');

Go to /logs.

Install (Lumen)

Install via composer:

composer require dipeshshihora/laravel-log-viewer

Register in bootstrap/app.php:

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

Add route:

$router->get('logs', '\Dipesh\LaravelLogViewer\LogViewerController@index');

Advanced

Customize view

Publish the Blade view to resources/views/vendor/laravel-log-viewer/:

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

Edit configuration

Publish the configuration file config/logviewer.php:

php artisan vendor:publish --provider="Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=config

Options:

  • lines_per_page (default: 200)
  • max_file_size (bytes; default: 50 MB) — skip rendering if larger
  • pattern (string or array; glob(s) like *.log,*.log.gz)
  • paths (array or comma/pipe-separated string) — multiple roots
  • storage_path (fallback when paths not set)

Security note

  • This controller reads files from storage/logs. Ensure your app's auth/authorization protects the route in production.

Notes:

  • The UI is plain HTML+CSS (no frontend framework) and lists nested paths like logs/api/access.log.
  • Very large files are skipped with a notice; adjust max_file_size as needed.

License

MIT © dipeshshihora

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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle