-
Notifications
You must be signed in to change notification settings - Fork 44
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
AddRollbarProvider from ILoggingBuilder .Net Core #511
Comments
@mymys91 , thanks for reporting the issue! I'll look into it probably early next week. |
confirm, Console logger is removed. |
I am using Rollbar.NetCore.AspNet project directly: Any chance to have a Rollbar.NetCore package with : |
@Lechus , thanks for the feedback! I think I should be able to dedicate some time to these topics within the next couple of weeks. |
Hello, By the way, I comment the line register factory to check my reported issue. What I can see now that loggerfactory has 2 providers: rollbar & console --> they work well |
@Lechus , i just wanted to clarify something regarding your request to create "Any chance to have a Rollbar.NetCore package with : Is the reason for it to have just Rollbar logger integration with .NET Core dependency injection infrastructure regardless of it to be used within an ASP.NET Core based application? |
WorkerService is not using ASP / HTTP things. In Programcs CreateHostBuilder():
Would be good to have configuration inside AddRollbarLogger?
or provide IRollbarConfig , so a class like MyRollbarConfig with properties like token, env could be populated from ENV / appsettings properties passed to .NET Core IConfiguration. |
reopening. i think we can implement a few good points brought up in this thread... |
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
Screenshots
Rollbar Client - Rollbar.NET Hosting Environment (please complete the following information):
Additional context
From Rollbar sourecode, I see function ILoggingBuilder AddRollbar try add RollbarLoggerFactory, I do not understand its purpose.
The text was updated successfully, but these errors were encountered: