mead-steve / ray-gunolog
This package is abandoned and no longer maintained.
No replacement package was suggested.
An abstract handler for monolog that connects to raygun.io
v1.0.0
2014-04-05 11:04 UTC
Requires (Dev)
- mindscape/raygun4php: 1.*
- monolog/monolog: 1.*
- phpspec/prophecy-phpunit: 1.*
This package is auto-updated.
Last update: 2021-03-29 06:14:39 UTC
README
Monolog Handler connection to raygun.io.
Build status
branch | status |
---|---|
master |
Installation
Via Composer: Add the following to your composer.json
"require": { "mead-steve/ray-gunolog": "^1.0.0" }
Usage
$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")));