Skip to content

Commit

Permalink
Merge pull request #487 from NLog/hotfix/fix-4.8.5
Browse files Browse the repository at this point in the history
Fixed: Mixing AddDebug() with a file based NLog configuration no longer works
  • Loading branch information
304NotModified authored Sep 30, 2019
2 parents 456ad60 + 822f2f5 commit 536ad5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NLog.Web.AspNetCore/AspNetExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static void ConfigureServicesNLog(NLogAspNetCoreOptions options, IServic
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly);
LogManager.AddHiddenAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly);

services.Replace(ServiceDescriptor.Singleton<ILoggerProvider, NLogLoggerProvider>(serviceProvider =>
services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, NLogLoggerProvider>(serviceProvider =>
{
ServiceLocator.ServiceProvider = serviceProvider;

Expand Down

0 comments on commit 536ad5e

Please sign in to comment.