This project allows you to easily use raven-php inside of CodeIgniter to use with Sentry or any other Raven client.
To install MY_Log:
- Add the contents of
application/config/config.phpinto your existingapplication/config/config.phpfile (or whatever environment subfolder) - Place
application/libraries/MY_Log.phpinto yourapplication/libraries/folder
To install raven-php, you can either:
- Use composer to install raven-php and include the
vendor/autoload.phpfile in your index.php file - Download
raven-phpand add it atapplication/libraries/raven-php
There are three configuration options:
raven_clientallows you to set the DSN string for the client you wish to connect to (such as Sentry)raven_configallows you to set the optional configuration options as documented here: https://github.com/getsentry/raven-php#configurationraven_log_thresholdallows you to set which error types should be pushed. Recommended: only ERROR, as debug will cause many requestsraven_environmentsallows you to set which environments raven is enabled. Recommended: only production, as adding multiple environments may cause many requests