Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SentryTarget #1

Open
lav45 opened this issue Feb 28, 2017 · 3 comments
Open

Add SentryTarget #1

lav45 opened this issue Feb 28, 2017 · 3 comments

Comments

@lav45
Copy link

lav45 commented Feb 28, 2017

Было бы неплохо добавить SentryTarget по аналогии как EmailTarget

@otsec
Copy link
Owner

otsec commented Mar 1, 2017

А какие дополнительные возможности это даёт? Закидывать логи?
Sentry — это всё-таки обработчик ошибок, для логов есть Loggly.

@lav45
Copy link
Author

lav45 commented Mar 1, 2017

А чем 'levels' => ['error', 'warning'], не ошибка?

Для Symfony к примеру такой уже есть :)

https://sentry.io/for/symfony/
https://github.com/getsentry/sentry-symfony

sentry:
    error_types: E_ALL & ~E_DEPRECATED & ~E_NOTICE

@otsec
Copy link
Owner

otsec commented Mar 3, 2017

По сути ничего не мешает и сейчас указать в сентри напрямую

'sentry' => [
    'class' => '...',
    'options' => [
        'error_types' => E_ALL & ~E_DEPRECATED & ~E_NOTICE,
    ],
],

Но в целом мне не очень нравится перезатирать уже существующие обработчики ошибок через set_event_handler.

Надо реализовать через SentryTarget и посмотреть какой способ лучше работает и не теряются ли какие-нибудь ошибки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants