Closed armetiz closed 2 years ago
I would second this request! For now it is possible to use the rollbar/rollbar
PHP package (composer require rollbar/rollbar
) and use Monolog's Rollbar handler.
In your services.yaml
you can do
Rollbar\RollbarLogger:
class: Rollbar\RollbarLogger
arguments:
- {
access_token: '%env(ROLLBAR_ACCESS_TOKEN)%',
environment: 'production'
}
Monolog\Handler\RollbarHandler:
class: Monolog\Handler\RollbarHandler
arguments:
$level: 200
Then in your monolog.yaml
:
monolog:
handlers:
main:
type: fingers_crossed
action_level: warning
handler: rollbar
excluded_http_codes: [ 405, 404 ]
buffer_size: 50
rollbar:
type: service
id: Monolog\Handler\RollbarHandler
channels: [ "!php" ]
https://www.elliotjreed.com/blog/2022-03-14/rollbar-symfony-5-and-6-monolog-handler
@armetiz Please see related PR https://github.com/rollbar/rollbar-php-symfony-bundle/pull/73
We just released v5.0.0-RC1, which supports PHP 8.0-8.1 and Symfony 6. Please test it out and provide and feedback you have. If it works without issue, let us know so we are more confident making a stable release.
@danielmorell I am using v5.0.0-RC1 and happy with how it's performing with a few of my projects. Looking forward to seeing the stable release.
@danielmorell when is v5.0.0 scheduled to be officially released?
Hi @nielsmouthaan I am looking at 07/25/22 or 08/01/22.
Hi, @danielmorell any news ?
Sorry for the delay. We wanted to double check our work, and it took longer than we were hoping. We released v5.0.0
today.
Hi there.
I hope that rollbar will be compatible with Symfony ^6.0.
Regards,