Package Data | |
---|---|
Maintainer Username: | arukomp |
Maintainer Contact: | arukomp@gmail.com (Arunas Skirius) |
Package Create Date: | 2022-08-15 |
Package Last Update: | 2024-11-11 |
Home Page: | https://log-viewer.opcodes.io |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:07:31 |
Package Statistics | |
---|---|
Total Downloads: | 3,204,176 |
Monthly Downloads: | 217,269 |
Daily Downloads: | 9,845 |
Total Stars: | 3,548 |
Total Watchers: | 22 |
Total Forks: | 254 |
Total Open Issues: | 13 |
OPcodes's Log Viewer is a perfect companion for your Laravel app.
You will no longer need to read the raw Laravel log files trying to find what you're looking for.
Log Viewer helps you quickly and clearly see individual log entries, to search, filter, and make sense of your Laravel logs fast. It is free and easy to install.
storage/logs
directory,To install the package via composer, Run:
composer require opcodesio/log-viewer
Once the installation is complete, you will be able to access Log Viewer directly in your browser.
By default, the application is available at: {APP_URL}/log-viewer
.
(for example: https://my-app.test/log-viewer
)
To publish the config file, run:
php artisan vendor:publish --tag="log-viewer-config"
You can easily change the default route and its middleware in the config/log-viewer.php.
See the configuration below:
/*
|--------------------------------------------------------------------------
| Log Viewer Route
|--------------------------------------------------------------------------
| Log Viewer will be available under this URL.
|
*/
'route_path' => 'log-viewer',
/*
|--------------------------------------------------------------------------
| Log Viewer route middleware.
|--------------------------------------------------------------------------
| The middleware should enable session and cookies support in order for the Log Viewer to work.
| The 'web' middleware will be applied automatically if empty.
|
*/
'middleware' => ['web'],
You can easily add authentication to log viewing routes using popular auth
middleware in the config/log-viewer.php
.
If your application doesn't use the default authentication solutions, you can use the auth.basic
HTTP Basic Authentication middleware.
Note: By default, the auth.basic
middleware will assume the email column on your users database table is the user's "username".
See the auth
middleware configuration below:
/*
|--------------------------------------------------------------------------
| Log Viewer route middleware.
|--------------------------------------------------------------------------
| The middleware should enable session and cookies support in order for the Log Viewer to work.
| The 'web' middleware will be applied automatically if empty.
|
*/
'middleware' => ['web', 'auth'],
For authorization using Spatie permissions see this discussion
Read the release blog post for screenshots and more information about Log Viewer's features.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.