azagoru/laravel-pachca-logging
Composer 安装命令:
composer require azagoru/laravel-pachca-logging
包简介
Logging to a Pachca in Laravel
README 文档
README
A Pachca based Monolog driver for Laravel
Install
composer require azagoru/laravel-pachca-logging
Usage
Add the new driver type in your config/logging.php configuration
'channels' => [ 'pachca' => [ 'driver' => 'custom', 'via' => Azagoru\PachcaLogging\PachcaLogger::class, 'webhook' => env('LOG_PACHCA_WEBHOOK_URL'), 'level' => env('LOG_LEVEL', 'debug'), 'name' => env('APP_NAME') , 'maxDepth' => env('LOG_PACHCA_MAX_DEPTH', 2), 'withTrace' => true, 'withTraceMarkup' => true, 'withTraceVendorLines' => true, ], ],
And add LOG_PACHCA_WEBHOOK_URL to your .env file.
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
统计信息
- 总下载量: 1.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-23