Laravel Log Viewer

rap2hpoutre/laravel-log-viewer image

Laravel Log Viewer stats

Downloads
8.8M
Stars
3,047
Open Issues
43
Forks
374

View on GitHub →

A Laravel log reader

Laravel Log Viewer

The Laravel Log Viewer is a convenient package for Laravel and Lumen frameworks, designed to help developers easily view and manage application logs directly through a web interface. Compatible with Laravel versions 4.2 through 9, this tool does not require any public assets or vendor-specific routes and supports environments with or without log rotation.

Key Features

  • Easy Installation: Quickly set up with Composer.
  • No Public Assets Required: Works seamlessly without the need for public assets.
  • Supports Various Laravel Versions: From Laravel 4.2 up to Laravel 9.
  • Customizable View: Allows customization of the log display.
  • Configuration Publishing: Offers options to publish and edit configuration files for advanced customization.

Installation and Usage

Laravel

  1. Install via Composer:
    composer require rap2hpoutre/laravel-log-viewer
  2. Register Service Provider (for Laravel versions before 5.5): Add Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class to the providers array in config/app.php.
  3. Define Route:
    Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
  4. Access Logs: Navigate to http://yourappdomain.com/logs to view the logs.

Lumen

  1. Install via Composer:
    composer require rap2hpoutre/laravel-log-viewer
  2. Register Service Provider: Include $app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class); in bootstrap/app.php.
  3. Define Route in app/Http/routes.php:
    $router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
    $router->get('logs', 'LogViewerController@index');
    });

Advanced Usage

Customize Views

To tailor the log view:

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

Edit Configuration

To modify configuration settings:

php artisan vendor:publish --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider"

Troubleshooting

In case of a InvalidArgumentException in FileViewFinder.php error, ensure installation steps were followed correctly, then execute:

php artisan config:clear

Laravel Log Viewer offers a straightforward and flexible solution for managing application logs, enhancing monitoring and debugging processes within Laravel and Lumen projects.

rap2hpoutre photo

Tinkering @ beta.gouv.fr & fabrique.social.gouv.fr. Stodgy mixture of Rust, JS, PHP, Forth, SQL, GFA Basic, music and more.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Rap2Hpoutre Laravel Log Viewer Related Articles

EnvKit: A Local Development Stack for Laravel on Windows and macOS image

EnvKit: A Local Development Stack for Laravel on Windows and macOS

Read article
Laravel News 2025 Recap image

Laravel News 2025 Recap

Read article
Sentry Adds Logs Support for Laravel Apps image

Sentry Adds Logs Support for Laravel Apps

Read article
A first look at Laravel Nightwatch image

A first look at Laravel Nightwatch

Read article
Laravel Herd v1.7 is out with updates to the dump UI image

Laravel Herd v1.7 is out with updates to the dump UI

Read article
Tinkerwell v4 is now released image

Tinkerwell v4 is now released

Read article
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Blastup logo

Blastup

Blastup provides social media enhancement services including buying Instagram likes, followers, and views, with features like instant delivery and a variety of packages to suit different needs.

Blastup
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel