承接 rexlmanu/mono-snag 相关项目开发

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

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

rexlmanu/mono-snag

最新稳定版本:4.2.0

Composer 安装命令:

composer require rexlmanu/mono-snag

包简介

Bugsnag integration for monolog. An abstract handler that sends messages to Bugsnag

README 文档

README

Test PHP 7 & 8 Latest Stable Version License Monthly Downloads

Monolog Handler connection to Bugsnag

Installation

Via Composer using

composer require mead-steve/mono-snag

Usage

A handler is provided that wraps up a Bugsnag client. By default, the handler will grab anything at Logger::ERROR and above and send it to Bugsnag.

$logger  = new Monolog\Logger("Example");

$bugsnagClient = new Bugsnag\Client('YOUR-BUGSNAG-API-KEY-HERE');
//... bugsnag specific config goes here.
$bugsnagHandler = new \MeadSteve\MonoSnag\BugsnagHandler($bugsnagClient);

$logger->pushHandler($bugsnagHandler);

// The following error will get sent automatically to Bugsnag
$logger->addError("oh no!", array('exception' => new \Exception("ohnoception")));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-13