bitweb/error-reporting

BitWeb extension for sending errors to email.

1.1.1 2016-12-28 12:05 UTC

This package is auto-updated.

Last update: 2024-12-21 20:30:24 UTC


README

Build Status Coverage Status ##Usage:

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();

Configuration