mead-steve/ray-gunolog

此包已被废弃且不再维护。未建议替代包。

monolog的抽象处理器,连接到raygun.io

v1.0.0 2014-04-05 11:04 UTC

This package is auto-updated.

Last update: 2021-03-29 06:14:39 UTC


README

Monolog处理器连接到raygun.io。

构建状态

分支 状态
master Build Status

安装

通过Composer:在composer.json中添加以下内容

  "require": {
        "mead-steve/ray-gunolog": "^1.0.0"
    }

用法

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

$rayGunHandler = new \MeadSteve\RayGunolog\RayGunHandler(
    new \Raygun4php\RaygunClient("YOUR_RAYGUN_KEY")
);

$logger->pushHandler($rayGunHandler);

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