承接 kabbouchi/laravel-logger-discord-channel 相关项目开发

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

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

kabbouchi/laravel-logger-discord-channel

最新稳定版本:v0.4.0

Composer 安装命令:

composer require kabbouchi/laravel-logger-discord-channel

包简介

A Discord based Monolog driver for Laravel

README 文档

README

A Discord based Monolog driver for Laravel

Install

composer require kabbouchi/laravel-logger-discord-channel

Usage

Add the new driver type in your config/logging.php configuration

'channels' => [
    'discord' => [
        'driver' => 'custom',
        'via' => KABBOUCHI\LoggerDiscordChannel\DiscordLogger::class,
        'webhook' => 'https://discordapp.com/api/webhooks/.....',
        'level' => 'DEBUG',
        'role_id' => null, // role to tag in the error,
        'environment' => 'production', // or ['production', 'staging', 'local']
    ],
],

Note

You may need to clear cache after installation if you get laravel.EMERGENCY: Unable to create configured logger. ... Log [discord] is not defined. with

php artisan config:clear

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-19