We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20f96b5 commit 89ab799Copy full SHA for 89ab799
1 file changed
src/NLog.Extensions.Hosting/Extensions/ConfigureExtensions.cs
@@ -72,6 +72,11 @@ private static NLogLoggerProvider CreateNLogLoggerProvider(IServiceProvider serv
72
TryLoadConfigurationFromContentRootPath(provider.LogFactory, contentRootPath);
73
}
74
75
+ if (provider.Options.ShutdownOnDispose)
76
+ {
77
+ provider.LogFactory.AutoShutdown = false;
78
+ }
79
+
80
return provider;
81
82
0 commit comments