From caccef92d7650c7a96a994cdc4e4da57e3d19251 Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Thu, 26 Aug 2021 22:40:07 +0200 Subject: [PATCH] Change default value for RemoveLoggerFactoryFilter to true --- src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs b/src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs index 08f738d7..7924a085 100644 --- a/src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs +++ b/src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs @@ -60,7 +60,7 @@ public class NLogProviderOptions /// Resets the default Microsoft LoggerFactory Filter for the , and instead only uses NLog LoggingRules. /// /// This option affects the building of service configuration, so assigning it from appsettings.json has no effect (loaded after). - public bool RemoveLoggerFactoryFilter { get; set; } + public bool RemoveLoggerFactoryFilter { get; set; } = true; /// /// Replace Microsoft LoggerFactory with a pure , and disables Microsoft Filter Logic and multiple LoggingProvider support.