Skip to content

Unable to create configured logger #93

Closed
@Mattnmoore

Description

@Mattnmoore

After upgrading to Laravel 6.*, I've encountered an error while trying to use Rollbar.

Unable to create configured logger. Using emergency logger. {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Monolog\\Handler\\RollbarHandler::__construct() must be an instance of RollbarNotifier, instance of Rollbar\\RollbarLogger given, called in /vagrant/api/vendor/rollbar/rollbar-laravel/src/RollbarServiceProvider.php on line 54 at /vagrant/api/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:68)

I'm on the dev-master branch of rollbar/rollbar-laravel and the following is my config.

        'rollbar' => [
            'driver' => 'monolog',
            'handler' => \Rollbar\Laravel\MonologHandler::class,
            'access_token' => env('ROLLBAR_TOKEN'),
            'level' => env('ROLLBAR_LEVEL')
        ]

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions