georgesdoe / laravel-weblog by georgesdoe

A simple utility to view your application's logs online
6
0
2
Package Data
Maintainer Username: georgesdoe
Maintainer Contact: georgefourm@gmail.com (George Fourmouzis)
Package Create Date: 2017-04-17
Package Last Update: 2018-03-25
Language: HTML
License: BSD-3-Clause
Last Refreshed: 2024-03-23 15:02:06
Package Statistics
Total Downloads: 6
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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