Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.