stepanenko3/laravel-log-viewer
最新稳定版本:v1.3.3
Composer 安装命令:
composer require stepanenko3/laravel-log-viewer
包简介
Fast and easy-to-use log viewer for your Laravel application
README 文档
README
Description
Log Viewer version without UI and with some modifications
Features
- Without UI (Without frontend)
- Support subfolders
- Files sorting by name, size, modification time
- Using custom pagination
Requirements
php: >=8.0
Installation
composer require stepanenko3/laravel-log-viewer
Usage
use Stepanenko3\LaravelLogViewer\LogViewer; use Stepanenko3\LaravelLogViewer\LogFile; // Getting all log files LogViewer::getFiles(); // Get specific log file by name LogViewer::getFile('laravel.log'); // Clear cache of all files LogViewer::clearCacheAll(); // Download specific log file by name LogFile::download('laravel.log'); // Delete specific log file by name LogFile::delete('laravel.log'); // Clear cache for specific log file by name LogFile::clearCache('laravel.log'); // Query logs LogFile::get( selectedFileName: 'laravel.log', // File name query: 'exception[0-9]+', // Filter logs by regex query string selectedLevels: ['warning', 'alert'], // Filter logs by level page: 2, // Page perPage: 25, // Logs per page direction: LogFile::NEWEST_FIRST, // Logs order. NEWEST_FIRST::OLDEST_FIRST, );
Credits
Contributing
Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 94.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-25