Created
April 10, 2015 17:41
-
-
Save kenzo0107/b62bc3ef9785511d5a27 to your computer and use it in GitHub Desktop.
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('./lib/Raven/Autoloader.php'); | |
Raven_Autoloader::register(); | |
$client = new Raven_Client('http://9dd9cc0705ad43f8bdd28b94160a5dac:a768b51445fd424ebd96aa576c378d58@192.168.33.10/4'); | |
// 簡単なメッセージを記録 | |
$client->captureMessage('hello world!'); | |
// 例外を捕捉 | |
try { | |
throw new Exception('Uh oh!'); | |
} | |
catch (Exception $e) { | |
error_log( '$e:' . print_r( $e, true ) ) ; | |
$client->captureException($e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment