kawsarahmad43/logeon
Composer 安装命令:
composer require kawsarahmad43/logeon
包简介
A beautiful Laravel log viewer with filtering, charts, and real-time monitoring
README 文档
README
A beautiful, modern Laravel log viewer with advanced filtering, visual charts, and real-time monitoring capabilities.
Features
✨ Beautiful UI - Clean, modern interface with Bootstrap 5
📊 Visual Charts - Pie chart showing log distribution by type
🔍 Advanced Filtering - Filter by date range and log type
🎯 4 Log Types - INFO, ERROR, WARNING, CUSTOM
📝 Stack Traces - Full exception details with formatted stack traces
⚡ Real-time - Instant log updates
🎨 Customizable - Publishable views, assets, and configuration
🔒 Secure - Configurable middleware protection
Requirements
- PHP 8.2 or higher
- Laravel 11.x or 12.x
Installation
Step 1: Install via Composer
composer require kawsarahmad43/logeon
Step 2: Publish Assets
Publish the package assets (CSS, JS, views, config) to your project:
php artisan vendor:publish --tag=logeon-assets
Step 3: (Optional) Publish Configuration
If you want to customize the configuration:
php artisan vendor:publish --tag=logeon-config
Step 4: (Optional) Publish Views
If you want to customize the views:
php artisan vendor:publish --tag=logeon-views
Or publish everything at once:
php artisan vendor:publish --tag=logeon
Usage
After installation, access the log viewer at:
http://yourapp.com/logger
Generate Test Logs
If you have enabled the test route in your configuration, you can generate sample logs:
http://yourapp.com/test-logs
Configuration
The configuration file is located at config/logeon.php after publishing:
return [ 'route_prefix' => env('LOGEON_ROUTE_PREFIX', 'logger'), 'middleware' => ['web'], 'log_file' => storage_path('logs/laravel.log'), 'per_page' => 10, 'enable_test_route' => env('LOGEON_ENABLE_TEST_ROUTE', env('APP_ENV') !== 'production'), ];
Security
By default, the log viewer is accessible to anyone. To protect it, add middleware in the configuration:
'middleware' => ['web', 'auth', 'admin'],
License
The MIT License (MIT). Please see License File for more information.
Support
For issues or questions, please visit:
- GitHub: https://github.com/KawsarAhmad43/logeon
- Email: ahmad43.bu@gmail.com
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-10