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
Support Raven_Breadcrumbs_MonologHandler #165
Comments
How would you suggest to register that logger? It should attach to your current Monolog config, and I'm not sure if this is viable in an automatic fashion... |
Maybe this could work: sentry:
logger_service: logger It defaults to Then in the Extension, we create the |
What do you mean by "push it to sentry.logger_service"? And how would you link all of this to your full Monolog configuration? |
I looked into it, and it seems that it's very simple to just configure this outside this bundle: services:
sentry.monolog_breadcrumbs_handler:
class: 'Raven_Breadcrumbs_MonologHandler'
arguments:
- '@sentry.client'
monolog:
handlers:
sentry:
type: service
id: sentry.monolog_breadcrumbs_handler Might be nice to add to the documentation. |
It would be great if the Symfony bundle would automatically (when enabled in config) register this handler to Monolog.
That way, we can use Sentry Breadcrumbs as the logger. It will send it to the log file as to Sentry.
The text was updated successfully, but these errors were encountered: