Created
September 3, 2014 00:19
-
-
Save jesseobrien/bb05216a4d866d3d766a to your computer and use it in GitHub Desktop.
Sentry laravel hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App::error(function(Exception $exception, $code) | |
| { | |
| // Sentry exception logging | |
| $client = new Raven_Client(Config::get('app.sentry-key')); | |
| $client->captureException($exception); | |
| Log::error($exception); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment