File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Serilog.Enrichers.Thread/Enrichers Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ namespace Serilog.Enrichers
21
21
/// <summary>
22
22
/// Enriches log events with a ThreadId property containing the <see cref="Environment.CurrentManagedThreadId"/>.
23
23
/// </summary>
24
- public class ThreadIdEnricher : ILogEventEnricher
24
+ sealed class ThreadIdEnricher : ILogEventEnricher
25
25
{
26
26
/// <summary>
27
27
/// The property name added to enriched log events.
28
28
/// </summary>
29
- public const string ThreadIdPropertyName = "ThreadId" ;
29
+ const string ThreadIdPropertyName = "ThreadId" ;
30
30
31
31
/// <summary>
32
32
/// The cached last created "ThreadId" property with some thread id. It is likely to be reused frequently so avoiding heap allocations.
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ namespace Serilog.Enrichers
21
21
/// <summary>
22
22
/// Enriches log events with a ThreadName property containing the <see cref="Thread.CurrentThread"/> <see cref="Thread.Name"/>.
23
23
/// </summary>
24
- public class ThreadNameEnricher : ILogEventEnricher
24
+ sealed class ThreadNameEnricher : ILogEventEnricher
25
25
{
26
26
/// <summary>
27
27
/// The property name added to enriched log events.
28
28
/// </summary>
29
- public const string ThreadNamePropertyName = "ThreadName" ;
29
+ const string ThreadNamePropertyName = "ThreadName" ;
30
30
31
31
/// <summary>
32
32
/// The cached last created "ThreadName" property with some thread name. It is likely to be reused frequently so avoiding heap allocations.
You can’t perform that action at this time.
0 commit comments