Closed Hornet-Wing closed 3 years ago
@bishopb @brianr @waltjones Hi, can you finally fix this? This issue is about a year old and this bug still exists - can you do something with that?
Thank you for reporting this issue. It's fixed by Pull Request #109. To use rollbar-agent, set handler
to Rollbar\Laravel\AgentHandler::class
.
This is now available as of v7.1.0-RC1
.
I've been looking at using
rollbar-agent
to do the actual sending to Rollbar. However, it is not possible to currently configure it in the logging config file as thehandler
key is used by natively by Laravel (5.8). So When I attempt to use the following config:I get the following error:
So I was able to validate my suspicions by reverting the handler back to using
Rollbar\Laravel\MonologHandler::class
and editing$config
inRollbarServiceProvider.php
to overwrite the handler key just before it gets passed intoRollbar::init
. This made everything work and Rollbar started logging to the folder.So, either the the key for the handler (used by Rollbar) needs to be changed or a better solution would be to nest the Rollbar specific settings to prevent conflict in the future. For example:
Altered key:
Nested settings: