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
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
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-13