Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Created April 10, 2015 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzo0107/b62bc3ef9785511d5a27 to your computer and use it in GitHub Desktop.
Save kenzo0107/b62bc3ef9785511d5a27 to your computer and use it in GitHub Desktop.
<?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