bitweb / error-reporting
BitWeb extension for sending errors to email.
Installs: 2 366
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 16
Forks: 1
Open Issues: 3
Requires
- bitweb/stdlib: ~1.0
- zendframework/zend-filter: ~2.2
- zendframework/zend-i18n: ~2.2
- zendframework/zend-servicemanager: ~2.2
- zendframework/zend-view: ~2.2
Requires (Dev)
- phpunit/phpunit: 3.7.*
- satooshi/php-coveralls: dev-master
- sebastianbergmann/phpcov: 1.1.0
README
Add this to your index.php file, right after autoloading.
$errorService = new \BitWeb\ErrorReporting\Service\ErrorService(array( 'errorReportingLevel' => E_ALL, 'subject' => '[Errors][your-app-id-here]', 'emails' => array ( 'you@domain.com' ), 'from_address' => 'you@domain.com', 'ignore404' => false, 'ignoreBot404' => false, 'botList' => array( 'AhrefsBot', 'bingbot', 'Ezooms', 'Googlebot', 'Mail.RU_Bot', 'YandexBot', ), 'ignorableExceptions' => array( 'ErrorException' ), 'ignorablePaths' => array ( 'paths/to/ignore' ) )); $errorService->startErrorHandling();
Add this to the last line of your index.php
$errorService->endErrorHandling();