Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

Custom MY_Log.php to work with Raven inside of Codeigniter.

Notifications You must be signed in to change notification settings

andrewryno/codeigniter-raven-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter Raven PHP

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.php into your existing application/config/config.php file (or whatever environment subfolder)
  • Place application/libraries/MY_Log.php into your application/libraries/ folder

To install raven-php, you can either:

  • Use composer to install raven-php and include the vendor/autoload.php file in your index.php file
  • Download raven-php and add it at application/libraries/raven-php

Configuration

There are three configuration options:

  • raven_client allows you to set the DSN string for the client you wish to connect to (such as Sentry)
  • raven_config allows you to set the optional configuration options as documented here: https://github.com/getsentry/raven-php#configuration
  • raven_log_threshold allows you to set which error types should be pushed. Recommended: only ERROR, as debug will cause many requests
  • raven_environments allows you to set which environments raven is enabled. Recommended: only production, as adding multiple environments may cause many requests

About

Custom MY_Log.php to work with Raven inside of Codeigniter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages