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

laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. #156

Closed
jpylisela opened this issue Sep 29, 2023 · 2 comments

Comments

@jpylisela
Copy link

Hi,

getting this error when running the app locally.

[2023-09-29 13:56:32] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Unresolvable dependency resolving [Parameter #0 [ <required> array $config ]] in class Rollbar\\RollbarLogger

Laravel
v10.24.0

rollbar/rollbar-laravel
v8.0.0

  'channels' => [
          'stack' => [
              'driver'            => 'stack',
              'channels'          => ['rollbar', 'single'],
              'ignore_exceptions' => false,
          ],
  
          'single' => [
              'driver' => 'single',
              'path'   => storage_path('logs/laravel.log'),
              'level'  => env('LOG_LEVEL', 'debug'),
          ],
  
          'rollbar' => [
              'driver'       => 'monolog',
              'handler'      => \Rollbar\Laravel\MonologHandler::class,
              'access_token' => env('ROLLBAR_TOKEN'),
              'environment'  => env('APP_NAME', 'production'),
              'level'        => 'warning',
          ],
@jpylisela
Copy link
Author

PHP v8.1

@jpylisela
Copy link
Author

Closing as duplicate

#150

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

1 participant