Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meadsteve/raygunolog
Monolog Handler connection to raygun.io
https://github.com/meadsteve/raygunolog
Last synced: 5 days ago
JSON representation
Monolog Handler connection to raygun.io
- Host: GitHub
- URL: https://github.com/meadsteve/raygunolog
- Owner: meadsteve
- License: mit
- Created: 2013-12-19T11:47:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-09T10:21:03.000Z (over 9 years ago)
- Last Synced: 2024-10-11T03:11:13.482Z (about 1 month ago)
- Language: PHP
- Size: 164 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RayGunolog
==========
Monolog Handler connection to raygun.io.Build status
------------| branch | status |
| ------ | ------ |
| master | [![Build Status](https://travis-ci.org/meadsteve/RayGunolog.png?branch=master)](https://travis-ci.org/meadsteve/RayGunolog) |Installation
------------
Via Composer:
Add the following to your composer.json
```js
"require": {
"mead-steve/ray-gunolog": "^1.0.0"
}
```Usage
------------```php
$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")));```