asavenkov/laravel-pachca-logger
最新稳定版本:v0.2.0
Composer 安装命令:
composer require asavenkov/laravel-pachca-logger
包简介
Logging to a Pachca in Laravel
README 文档
README
A Pachca based Monolog driver for Laravel
Install
composer require asavenkov/laravel-pachca-logger
Usage
Add the new driver type in your config/logging.php configuration
'channels' => [ 'pachca' => [ 'driver' => 'custom', 'via' => SavenkovDev\PachcaLogger\PachcaLogger::class, 'webhook' => env('LOG_PACHCA_WEBHOOK_URL'), 'level' => env('LOG_LEVEL', 'debug'), 'maxDepth' => env('LOG_PACHCA_MAX_DEPTH', 2), ], ],
And add LOG_PACHCA_WEBHOOK_URL to your .env file.
Note
You may need to clear cache after installation if you get laravel.EMERGENCY: Unable to create configured logger. ... Log [pachca] is not defined. with
php artisan config:clear
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Make sure to add or update tests as appropriate.
Use Conventional Commits for commit messages.
License
统计信息
- 总下载量: 763
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-23