Skip to content

Commit 0b961db

Browse files
authored
Target framework names -> THREAD_NAME constant
1 parent 55cfd64 commit 0b961db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serilog.Enrichers.Thread/ThreadLoggerConfigurationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static LoggerConfiguration WithThreadId(
3939
return enrichmentConfiguration.With<ThreadIdEnricher>();
4040
}
4141

42-
#if NET45 || NETSTANDARD2_0
42+
#if THREAD_NAME
4343
/// <summary>
4444
/// Enrich log events with a ThreadName property containing the <see cref="Thread.CurrentThread"/> <see cref="Thread.Name"/>.
4545
/// </summary>
@@ -53,4 +53,4 @@ public static LoggerConfiguration WithThreadName(
5353
}
5454
#endif
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)