proximitybbdo / engine

FuelPHP setup for BBDO
http://fuelphp.com
4 stars 3 forks source link

sentry package #21

Closed jeroenbourgois closed 11 years ago

jeroenbourgois commented 11 years ago

Included Raven, the Sentry client for php. Small readme contains more details, but you just have to

Sentry::log('Your log message'); 
Sentry::exception($e);

You should include the package in you config file. In production mode when the package is loaded, it will override the default error handlers (the ones Fuel already overloads itself) and send errors to sentry. This can be disabled in the config file. The flag there doesn't affect on DEVELOPMENT, where error handlers are not touched.

Please review my code! I just included the Raven client (inside vendor), create a wrapper class with two static methods and that's it. Maybe we need more?

PS: the dns/user key for Sentry is my personal one for now, the free plan. We should change this.

jeroenbourgois commented 11 years ago

Dus wat rustig met het testen he :P Mijn free account heeft maar 100 events/dag