File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
- # Serilog.Enrichers.Thread
1
+ # Serilog.Enrichers.Thread [ ![ Build status ] ( https://ci.appveyor.com/api/projects/status/2vgxdy3swg6eaj3f?svg=true )] ( https://ci.appveyor.com/project/serilog/serilog-enrichers-thread ) [ ![ NuGet Version ] ( http://img.shields.io/nuget/v/Serilog.Enrichers.Thread.svg?style=flat )] ( https://www.nuget.org/packages/Serilog.Enrichers.Thread/ )
2
2
3
3
Enrich Serilog events with properties from the current thread.
4
4
5
- [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/2vgxdy3swg6eaj3f?svg=true )] ( https://ci.appveyor.com/project/serilog/serilog-enrichers-thread ) [ ![ NuGet Version] ( http://img.shields.io/nuget/v/Serilog.Enrichers.Thread.svg?style=flat )] ( https://www.nuget.org/packages/Serilog.Enrichers.Thread/ )
5
+ ### Getting started
6
+
7
+ Install the package from NuGet:
8
+
9
+ ``` powershell
10
+ Install-Package Serilog.Enrichers.Thread
11
+ ```
12
+
13
+ In your logger configuration, apply ` Enrich.WithThreadId() ` :
14
+
15
+ ``` csharp
16
+ Log .Logger = new LoggerConfiguration ()
17
+ .Enrich .WithThreadId ()
18
+ .CreateLogger ();
19
+ ```
6
20
7
- * [ Documentation] ( https://github.com/serilog/serilog/wiki )
8
21
9
22
Copyright © ; 2016 Serilog Contributors - Provided under the [ Apache License, Version 2.0] ( http://apache.org/licenses/LICENSE-2.0.html ) .
You can’t perform that action at this time.
0 commit comments