sdtech/log-viewer-laravel
最新稳定版本:v1.0.0
Composer 安装命令:
composer require 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
关键字:
README 文档
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
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-19