Skip to content

Commit

Permalink
Update logging filters
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Dec 17, 2024
1 parent 201e01c commit ffb7836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NexusMods.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ private static void AddLogging(ILoggingBuilder loggingBuilder, LoggingSettings s
RemoveLoggerFactoryFilter = false,
};

loggingBuilder.AddFilter("Microsoft", LogLevel.Warning);
loggingBuilder.AddFilter("System", LogLevel.Warning);

loggingBuilder.ClearProviders();
loggingBuilder.SetMinimumLevel(settings.MinimumLevel);
loggingBuilder.AddNLog(config, options);
Expand Down

0 comments on commit ffb7836

Please sign in to comment.