Skip to content

Commit

Permalink
Disable Presentation Traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Jan 30, 2025
1 parent be47fff commit 361ce56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/RevitLookup/Config/LoggerConfigurator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Logging;
using System.Diagnostics;
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog.Core;
using Serilog.Events;
Expand All @@ -14,6 +15,7 @@ public static void AddSerilogConfiguration(this ILoggingBuilder builder)
var logger = CreateDefaultLogger();
builder.AddSerilog(logger);

PresentationTraceSources.ResourceDictionarySource.Switch.Level = SourceLevels.Critical;
AppDomain.CurrentDomain.UnhandledException += OnOnUnhandledException;
}

Expand Down

0 comments on commit 361ce56

Please sign in to comment.