georgesdoe / laravel-weblog
A simple utility to view your application's logs online
dev-master
2018-03-25 10:52 UTC
This package is not auto-updated.
Last update: 2025-04-27 05:36:54 UTC
README
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 viewsphp artisan vendor:publish --tag=views
- Add a new disk in your
filesystems.php
configuration file calledlogs
pointing 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