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

Fixed conflict issue between UseNLog and default log providers #350

Merged
merged 1 commit into from
Oct 19, 2019

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Oct 19, 2019

Fixed bug introduced with IServiceCollection.Replace. Instead use TryAddEnumerable in UseNLog in NLog.Extension.Hosting.

Resolves #348 by fixing bug introduced with #344.

Same as NLog/NLog.Web#485

@304NotModified 304NotModified changed the title Fixed bug introduced with IServiceCollection.Replace. Instead use TryAddEnumerable Fixed: UseNLog will conflict with default log providers Oct 19, 2019
@304NotModified 304NotModified changed the title Fixed: UseNLog will conflict with default log providers Fixed conflict issue between UseNLog and default log providers Oct 19, 2019
@304NotModified 304NotModified merged commit d5319ca into NLog:master Oct 19, 2019
@304NotModified 304NotModified added this to the 1.6.1 milestone Oct 19, 2019
@304NotModified
Copy link
Member

Thanks @snakefoot ! I will create a new release now.

Please confirm that I renamed the PR correctly.

@snakefoot
Copy link
Contributor Author

snakefoot commented Oct 19, 2019

That title also works. Any way no need to hotfix NLog.Web.AspNetCore. Since the bug "only" exists in NLog.Extension.Hosting.

@304NotModified
Copy link
Member

Any way no need to hotfix NLog.Web.AspNetCore. Since the bug "only" exists in NLog.Extension.Hosting.

Thanks, that was indeed my next question ;)

@304NotModified
Copy link
Member

Live! Thanks @snakefoot!

@snakefoot
Copy link
Contributor Author

Well kind of embarrassing that I forgot this piece of code, when fixing it in NLog.Web.AspNetCore.

But happy it was found and resolved so quickly. Hopefully it has not increased the baldness of too many people pulling their hair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The latest version cause the default console logging blocked!
2 participants