sdtech/log-viewer-laravel
This package simplifies the process of viewing Laravel logs by providing a user-friendly interface to browse, filter, and manage log entries directly from the application. It allows developers to monitor and troubleshoot issues in real-time without needing to access the file system or navigate complex log files
103
| Install | |
|---|---|
composer require sdtech/log-viewer-laravel |
|
| Latest Version: | v1.0.0 |
| PHP: | ^7.2|^8.0 |
| License: | MIT |
| Last Updated: | Oct 19, 2024 |
| Links: | GitHub · Packagist |
Maintainer: sdbacchu
log-viewer-laravel | A Package to explore logs
About
It simplifies the process of viewing Laravel logs by providing a user-friendly interface to browse, filter, and manage log entries directly from the application. It allows developers to monitor and troubleshoot issues in real-time without needing to access the file system or navigate complex log files The current features are :
- View logs
- Download logs
- Clear logs
- Store logs
Requirements
Installation
- From your projects root folder in terminal run:
composer require sdtech/log-viewer-laravel
- In config/app.php, add it:
'providers' => [
// Other Service Providers...
Sdtech\LogViewerLaravel\Providers\LogViewerLaravelServiceProvider::class,
],
- Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
php artisan vendor:publish --tag=logviewerlaravel
configuration
- Go to your config folder, then open "logviewerlaravel.php" file
- here you must add that info or add the info to your .env file .
'log_viewer_author' => env('LOGVIEWER_AUTHOR'),
'log_viewer_title' => env('LOGVIEWER_APP_TITLE'), // default LARAVEL
'max_file_size' => env('LOGVIEWER_MAX_FILE_SIZE'), // default 52428800
'pattern' => env('LOGVIEWER_PATTERN', '*.log'), // no need to change it
'storage_path' => env('LOGVIEWER_STORAGE_PATH', storage_path('logs')) // no need to change it
Uses
- We provide a sample code of functionality that will help you to integrate easily. Add a route in your web routes file:
Route::get('log', [Sdtech\LogViewerLaravel\Controllers\LogViewerLaravelController::class, 'index']);
Go to http://your_url/log or some other route