Package

Rap2Hpoutre Laravel Log Viewer

A Laravel log reader

Package

rap2hpoutre/laravel-log-viewer

View on GitHub →

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 Laravel Log Viewer Related Articles

Fast Excel 5.x Adds Streaming Imports and Safer Exports image

Fast Excel 5.x Adds Streaming Imports and Safer Exports

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

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