LogViewer support only the daily log channel, so make sure that the LOG_CHANNEL
is set to daily
instead of stack
in your .env
file.
For Laravel 5.5 and below, set this in your .env
file
APP_LOG=daily
Laravel uses the Monolog PHP logging library. This gives you a variety of powerful log handlers/formatters to utilize.
LogViewer | Laravel |
---|---|
You can install this package via Composer by running this command: composer require arcanedev/log-viewer
.
NOTE : The package will automatically register itself if you're using Laravel
>= v5.5
, so you can skip this section.
Once the package is installed, you can register the service provider in config/app.php
in the providers
array:
'providers' => [
...
Arcanedev\LogViewer\LogViewerServiceProvider::class,
],
No need to register the LogViewer facade, it's done automagically.
To publish the config and translations files, run this command:
php artisan log-viewer:publish
php artisan log-viewer:publish --force
php artisan log-viewer:publish --tag=config
To force publishing add
--force
flag.
php artisan log-viewer:publish --tag=lang
To force publishing add
--force
flag.
php artisan log-viewer:check
Go to http://{your-project}/log-viewer
(See the Configuration page to change the uri and other stuff).