Last active
April 23, 2017 07:49
-
-
Save filippo-quacquarelli/1f2bbbd4f4cddc83155c2efc4fa87d2b to your computer and use it in GitHub Desktop.
sentry.io sdk tutorial
This file contains 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
<?php | |
require_once __DIR__ . '/sentry-php/lib/Raven/Autoloader.php'; | |
Raven_Autoloader::register(); | |
$client = new Raven_Client('https://***:***@sentry.io/***'); | |
$error_handler = new Raven_ErrorHandler($client); | |
$error_handler->registerExceptionHandler(); | |
$error_handler->registerErrorHandler(); | |
$error_handler->registerShutdownFunction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment