georgesdoe/laravel-weblog

A simple utility to view your application's logs online
6
Install
composer require georgesdoe/laravel-weblog
License:BSD-3-Clause
Last Updated:Mar 25, 2018
Links: GitHub  ·  Packagist
Maintainer: georgesdoe

laravel-weblog

A Laravel package to view and manage your application's logs online.
This package is meant to be used as a drop-in solution in order to manage and download your application's log files.

Requirements

  • PHP >= 5.6
  • Laravel >= 5.4

Installation

  • Run composer install georgesdoe/laravel-weblog
  • Publish the main assets by running php artisan vendor:publish --tag=main, and optionally if you want to edit the views php artisan vendor:publish --tag=views
  • Add a new disk in your filesystems.php configuration file called logspointing to where your logs are stored, for example
  'logs' => [
      'driver' => 'local',
      'root' => storage_path('logs'),
  ],
  • Finally, register the package's Service Provider in your app.php configuration file by adding the following to the providers array
Georgesdoe\Weblog\WeblogServiceProvider::class,

Configuration

You are can modify the views as you wish after publishing them, or even use the routes as an API for your own front-end.

In the weblog.php configuration file, you can also configure the route prefix (which is "logs" by default) and the middleware to use for these routes.

You should change the middleware to one that requires authentication so your logs aren't exposed

Related Packages

spatie/laravel-google-fonts

Manage self-hosted Google Fonts in Laravel apps

1,364,355 493
tightenco/jigsaw

Simple static sites with Laravel's Blade.

468,529 2,253
roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

367,919 41
haruncpi/laravel-log-reader

A simple and beautiful laravel log reader

355,821 380
laravel-frontend-presets/argon

Laravel 9.x Front-end preset for argon

259,956 233