Looking to hire Laravel developers? Try LaraJobs

laravel-log-viewer maintained by jaydeepbinary

Description
A beautiful, developer-friendly Laravel log viewer with live search, level filtering, and a professional UI.
Author
Last update
2026/09/23 20:46 (dev-main)
License
Downloads
0

Comments
comments powered by Disqus

Laravel Log Viewer

Latest Version on Packagist Total Downloads License

A beautiful, developer-friendly Laravel log viewer with live search, level filtering, copy-to-clipboard, and a professional light-theme UI — accessible at /log-viewer.

Features

  • 📋 File list sidebar — browse all log files with size and date
  • 🔍 Live search — filter entries as you type (press / to focus)
  • 🎚️ Level filters — filter by DEBUG, INFO, WARNING, ERROR, CRITICAL, etc. with entry counts
  • Copy to clipboard — hover any row to copy the message
  • 📄 Stack trace expand — collapsible stack traces per entry
  • 📊 Stats bar — entry count breakdown by level
  • Smooth animations — staggered row fade-in, transitions
  • 📱 Responsive — works on all screen sizes
  • 💡 Keyboard shortcuts/ to search, Escape to clear

Requirements

  • PHP 8.2+
  • Laravel 11, 12, or 13

Installation

Install via Composer:

composer require jaydeep/laravel-log-viewer

The package auto-discovers its service provider — no manual registration needed.

Publish assets

Publish the CSS and JS to your public/ directory:

php artisan vendor:publish --tag=log-viewer-assets

Publish config (optional)

php artisan vendor:publish --tag=log-viewer-config

Usage

Visit /log-viewer in your browser after starting the dev server:

php artisan serve

Then open: http://localhost:8000/log-viewer

Configuration

After publishing, edit config/log-viewer.php:

return [
    'enabled'    => true,
    'route'      => 'log-viewer',       // URL prefix
    'middleware' => ['web'],             // Add 'auth' to restrict access
    'log_path'   => storage_path('logs'),
    'per_page'   => 200,
];

Restricting access

Add the auth middleware to protect the route in production:

'middleware' => ['web', 'auth'],

Changelog

Please see CHANGELOG.md for recent changes.

License

The MIT License (MIT). See LICENSE.md for details.