From d26deff586be4e4c020a8bfe8fd7b1a260999606 Mon Sep 17 00:00:00 2001 From: Adrian Toman Date: Wed, 15 Mar 2023 10:29:57 +1100 Subject: [PATCH] Update Serilog to 2.12 and App Insights to 2.21.0 --- .../Serilog.Sinks.ApplicationInsights.csproj | 4 ++-- .../ApplicationInsightsTest.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Serilog.Sinks.ApplicationInsights/Serilog.Sinks.ApplicationInsights.csproj b/src/Serilog.Sinks.ApplicationInsights/Serilog.Sinks.ApplicationInsights.csproj index 16a5681..2e1e6f0 100644 --- a/src/Serilog.Sinks.ApplicationInsights/Serilog.Sinks.ApplicationInsights.csproj +++ b/src/Serilog.Sinks.ApplicationInsights/Serilog.Sinks.ApplicationInsights.csproj @@ -23,8 +23,8 @@ - - + + diff --git a/test/Serilog.Sinks.ApplicationInsights.Tests/ApplicationInsightsTest.cs b/test/Serilog.Sinks.ApplicationInsights.Tests/ApplicationInsightsTest.cs index 2ba6acc..848f8ff 100644 --- a/test/Serilog.Sinks.ApplicationInsights.Tests/ApplicationInsightsTest.cs +++ b/test/Serilog.Sinks.ApplicationInsights.Tests/ApplicationInsightsTest.cs @@ -13,7 +13,7 @@ public abstract class ApplicationInsightsTest protected ApplicationInsightsTest(ITelemetryConverter converter = null) { - var tc = new TelemetryConfiguration("", _channel = new UnitTestTelemetryChannel()); + var tc = new TelemetryConfiguration { TelemetryChannel = _channel = new UnitTestTelemetryChannel() }; Logger = new LoggerConfiguration() .WriteTo.ApplicationInsights(tc, converter ?? TelemetryConverter.Traces)