Skip to content

Commit

Permalink
Change default value for RemoveLoggerFactoryFilter to true (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Aug 26, 2021
1 parent 04fa379 commit d975f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class NLogProviderOptions
/// Resets the default Microsoft LoggerFactory Filter for the <see cref="NLogLoggerProvider"/>, and instead only uses NLog LoggingRules.
/// </summary>
/// <remarks>This option affects the building of service configuration, so assigning it from appsettings.json has no effect (loaded after).</remarks>
public bool RemoveLoggerFactoryFilter { get; set; }
public bool RemoveLoggerFactoryFilter { get; set; } = true;

/// <summary>
/// Replace Microsoft LoggerFactory with a pure <see cref="NLogLoggerFactory" />, and disables Microsoft Filter Logic and multiple LoggingProvider support.
Expand Down

0 comments on commit d975f78

Please sign in to comment.