2017 © Pedro Peláez
 

fuel-package fuel-packages-sentry

image

core-tech/fuel-packages-sentry

  • Monday, May 20, 2013
  • by core-tech
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

FuelPHP Package for Sentry

Sentry is a realtime event logging. This package corresponds to PHP and Javascript., (*1)


Install

Setup to fuel/packages/sentry

If you use git submodule or download zip, you must install vendors, (*2)

$ cd fuel/packages/sentry
$ php composer.phar install

Configuration

In app/config/config.php, (*3)

'always_load' => array('packages' => array(
    'sentry',
    ...

Copy packages/sentry/config/sentry.php to under app/config directory and edit, (*4)

PHP error is automatically send by Error class that has been overridden

JS error is needs the following code in head tag to automatically send

<?php echo Sentry::get_raven_client(); ?>

Example

PHP

Add option and manually logging
// Send exception
$opt = array('tags' => array('MyTag' => 'MyTag Message'));
Sentry::send_exception(new Exception('message'), $opt);

// Send message
$opt = array('tags' => array('MyTag' => 'MyTag Message'));
Sentry::send_message('message', $opt);
Sentry::send_message('%04d-%02d-%02d', $opt, array(2013,4,1));

For more information, see raven-php, (*5)

Javascript

Add option
<?php echo Sentry::get_raven_client(array('logger' => 'MyLogger')); ?>

For more information, see raven-js, (*6)

Manually logging
try {
    errorThrowingCode();
} catch(e) {
    Raven.captureException(e);
}

The Versions

20/05 2013

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by CoreTech Co.,Ltd.

20/05 2013

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by CoreTech Co.,Ltd.

15/05 2013

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by CoreTech Co.,Ltd.

10/05 2013

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by CoreTech Co.,Ltd.