yaro / jarboe-log-viewer
Logs viewer for Jarboe admin panel
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:Blade
Requires
- arcanedev/log-viewer: ^4.5|^5.0|^7.0|^8.0
- yaro/jarboe: ^1.0
This package is auto-updated.
Last update: 2024-11-08 16:36:53 UTC
README
Integrate ArcaneDev/LogViewer in Jarboe project.
Installation
Install package via Composer:
composer require yaro/jarboe-log-viewer
Publish config file and views:
php artisan vendor:publish --provider="Yaro\JarboeLogViewer\ServiceProvider"
In config/logging.php
make sure daily
channel is within channels of stack
log channel, that is used by default in "pure" Laravel application, e.g.:
// config/logging.php return [ //... 'channels' => [ 'stack' => [ 'driver' => 'stack', 'name' => 'channel-name', 'channels' => ['daily', 'slack'], ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 7, ], 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'level' => 'critical', ], //... ];
Optionally, add url to log viewer page in navigation sidebar:
<!-- resources/views/vendor/jarboe/inc/navigation.blade.php --> <li> <a href="{{ route('log-viewer::dashboard') }}"> <i class="fa fa-lg fa-fw fa-exclamation-triangle"></i> <span class="menu-item-parent">Logs</span> </a> </li>
Usage
Logs can be viewed on log-viewer
under your admin panel prefix, by default it will be http://localhost/admin/log-viewer
.
Look at config/log-viewer.php
for more configuration options.