samirraihan/laravel-microsoft-teams-logger
最新稳定版本:v1.0.0
Composer 安装命令:
composer require samirraihan/laravel-microsoft-teams-logger
包简介
Laravel logger that sends logs to Microsoft Teams via webhook.
README 文档
README
A Laravel-compatible logger that sends messages to a Microsoft Teams webhook using Monolog.
Installation
composer require samirraihan/laravel-microsoft-teams-logger
Laravel Integration
Publish Configuration File
php artisan vendor:publish --tag=config
Set Environment Variables
TEAMS_WEBHOOK_URL= TEAMS_LOG_LEVEL=error
Add Custom Logging Channel (config/logging.php -> channels)
'stack' => [ 'driver' => 'stack', 'channels' => ['single', 'teams'], 'ignore_exceptions' => false, ], 'teams' => [ 'driver' => 'custom', 'via' => MicrosoftTeamsLogger\TeamsLoggerFactory::class, 'level' => env('TEAMS_LOG_LEVEL', 'error'), 'webhookUrl' => env('TEAMS_WEBHOOK_URL'), ],
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-29