Skip to content

Commit 8e73936

Browse files
committed
boost(logs): Remove unneeded threadid
1 parent b1b093e commit 8e73936

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

SoundSwitch/Framework/Logger/Configuration/LoggerConfigurator.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ public static class LoggerConfigurator
1414
public static void ConfigureLogger()
1515
{
1616
const string sentryTemplate = "{Message}\n{Properties}";
17-
const string outputTemplate = "[{Timestamp:HH:mm:ss.fff} {Level:u3}][{ThreadId}]" + sentryTemplate + "(at {Caller}){NewLine}{Exception}";
17+
const string outputTemplate = "[{Timestamp:HH:mm:ss.fff} {Level:u3}]]{Properties} {Message}(at {Caller}){NewLine}{Exception}";
1818
Log.Logger = new LoggerConfiguration()
1919
#if RELEASE
2020
.MinimumLevel.Debug()
2121
#else
2222
.MinimumLevel.Verbose()
2323
#endif
24-
.Enrich.WithThreadId()
2524
.Enrich.WithExceptionDetails()
2625
.Enrich.WithCaller()
2726
#if DEBUG

SoundSwitch/SoundSwitch.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<PackageReference Include="Sentry.Serilog" Version="3.27.0" />
5858
<PackageReference Include="Serilog" Version="2.12.0" />
5959
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.2.0" />
60-
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
6160
<PackageReference Include="Serilog.Exceptions" Version="8.4.0+build.694" />
6261
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
6362
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />

0 commit comments

Comments
 (0)