Skip to content

AddRollbarProvider from ILoggingBuilder .Net Core #511

Open
@mymys91

Description

@mymys91

Describe the bug
Hi, I am not sure this is a bug or not. When I try to add Rollbar provider in ConfigureLogging as same as I do with AddConsole(). It will create 2 LoggerFactory and lead to cannot log to Console anymore.
Expected behavior
I expect that default LoggerFactory will have 2 providers: console & rollbar.

To Reproduce

  1. Create a new project with template type Worker Service
  2. Add Rollbar accesstoken & Environment to appsetting.json
  3. AddRollbar as in below picture.

Screenshots
image

Rollbar Client - Rollbar.NET Hosting Environment (please complete the following information):

  • .NET flavor and its version: .NET Core 3.0
  • Rollbar.NET Version: 3.7.1

Additional context
From Rollbar sourecode, I see function ILoggingBuilder AddRollbar try add RollbarLoggerFactory, I do not understand its purpose.

Metadata

Metadata

Assignees

Labels

bugDenotes a runtime problem within the SDKquestion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions