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 compl
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel-package
Requires
- php: ^7.2|^8.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0|^7.0|^8.0|^9.0
- phpunit/phpunit: ^7||^8.4|^9.3.3|^10.1
README
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