Skip to content

Commit 49ba86c

Browse files
Remove Seq logging and prepare for .NET logging migration
1 parent 005968d commit 49ba86c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ServiceControl.Infrastructure/LoggerUtil.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public static class LoggerUtil
99
public static void BuildLogger(this ILoggingBuilder loggingBuilder, LogLevel level)
1010
{
1111
loggingBuilder.AddNLog();
12-
loggingBuilder.AddSeq();
1312
loggingBuilder.SetMinimumLevel(level);
1413
}
1514

src/ServiceControl.Infrastructure/LoggingConfigurator.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace ServiceControl.Infrastructure
1212

1313
using LogManager = NServiceBus.Logging.LogManager;
1414

15+
// TODO: Migrate from NLog to .NET logging
1516
public static class LoggingConfigurator
1617
{
1718
public static void ConfigureLogging(LoggingSettings loggingSettings)
@@ -60,14 +61,16 @@ public static void ConfigureLogging(LoggingSettings loggingSettings)
6061
nlogConfig.LoggingRules.Add(aspNetCoreRule);
6162
nlogConfig.LoggingRules.Add(httpClientRule);
6263

63-
// HACK: Fix LogLevel to Info for testing purposes only.
64-
// nlogConfig.LoggingRules.Add(new LoggingRule("*", loggingSettings.LogLevel, consoleTarget));
64+
// HACK: Fixed LogLevel to Info for testing purposes only.
65+
// Migrate to .NET logging and change back to loggingSettings.LogLevel.
66+
// nlogConfig.LoggingRules.Add(new LoggingRule("*", loggingSettings.LogLevel, consoleTarget));
6567
nlogConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Info, consoleTarget));
6668

6769
if (!AppEnvironment.RunningInContainer)
6870
{
69-
// HACK: Fix LogLevel to Info for testing purposes only.
70-
//nlogConfig.LoggingRules.Add(new LoggingRule("*", loggingSettings.LogLevel, fileTarget));
71+
// HACK: Fixed LogLevel to Info for testing purposes only.
72+
// Migrate to .NET logging and change back to loggingSettings.LogLevel.
73+
// nlogConfig.LoggingRules.Add(new LoggingRule("*", loggingSettings.LogLevel, fileTarget));
7174
nlogConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Info, fileTarget));
7275
}
7376

src/ServiceControl.Infrastructure/ServiceControl.Infrastructure.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<PackageReference Include="NLog.Extensions.Logging" />
1414
<PackageReference Include="NServiceBus" />
1515
<PackageReference Include="NServiceBus.Extensions.Logging" />
16-
<PackageReference Include="Seq.Extensions.Logging" />
1716
</ItemGroup>
1817

1918
</Project>

src/ServiceControl.Monitoring/ServiceControl.Monitoring.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" />
2626
<PackageReference Include="NServiceBus.Extensions.Hosting" />
2727
<PackageReference Include="NServiceBus.Persistence.NonDurable" />
28-
<PackageReference Include="Seq.Extensions.Logging" />
2928
</ItemGroup>
3029

3130
<ItemGroup>

0 commit comments

Comments
 (0)