承接 ansjabar/laravel-teams-logger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ansjabar/laravel-teams-logger

最新稳定版本:0.1.0

Composer 安装命令:

composer require ansjabar/laravel-teams-logger

包简介

Send messages to Microsoft Teams using Incoming Webhook

README 文档

README

Laravel handler to log errors to Microsoft Teams using Incoming Webhook connector.

Installation

Require this package with composer.

$ composer require ansjabar/laravel-teams-logger

Integration

$ php artisan vendor:publish --provider="AnsJabar\LaravelTeamsLogger\LoggerServiceProvider"

Add this configuration to config/logging.php file

'teams' => [
    'driver'    => 'custom',
    'via'       => \AnsJabar\LaravelTeamsLogger\LoggerChannel::class,
    'level'     => 'debug',
    'url'       => env('TEAMS_LOGGING_URL'),
    'name'      => 'The Project' // Optional: 
],

After added configs to your config/logging.php file, add TEAMS_LOGGING_URL variable to your .env file with connector url from your microsoft teams connector. Please read microsoft teams document to find your connector url.

Usage

To send a simple error message to teams channel, you can use script below:

Log::channel('teams')->error('Error message');

To log all you application errors automatically, add teams to the default stack channel

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'teams'],
    ],
],

License

This laravel-teams-logger package is available under the MIT license. See the LICENSE file for more info.

统计信息

  • 总下载量: 1.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固