Skip to content

Commit c7b45c6

Browse files
authored
Merge pull request #4 from merbla/2.0-release
2.0 release
2 parents 536fb75 + 14a091b commit c7b45c6

File tree

8 files changed

+58
-31
lines changed

8 files changed

+58
-31
lines changed

Build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ Push-Location src/Serilog.Enrichers.Thread
1212
if($LASTEXITCODE -ne 0) { exit 1 }
1313

1414
Pop-Location
15-
Pop-Location
15+
# Push-Location test/Serilog.Enrichers.Thread.Tests
16+
17+
# & dotnet test -c Release
18+
# if($LASTEXITCODE -ne 0) { exit 2 }
19+
20+
# Pop-Location
21+
Pop-Location

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# Serilog.Enricher.Thread
1+
# Serilog.Enrichers.Thread
22

33
Enrich Serilog events with properties from the current thread.
44

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.Enricher.Thread/)
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/)
6+
7+
To use the enricher, first install the NuGet package:
8+
9+
```powershell
10+
Install-Package Serilog.Enrichers.Thread
11+
```
612

713
* [Documentation](https://github.com/serilog/serilog/wiki)
814

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: '{build}'
2+
skip_tags: true
23
image: Visual Studio 2015
34
configuration: Release
45
install:
56
- ps: mkdir -Force ".\build\" | Out-Null
6-
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.ps1" -OutFile ".\build\installcli.ps1"
7+
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1"
78
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli"
8-
- ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath'
9+
- ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath -Version 1.0.0-preview2-003121'
910
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
1011
build_script:
1112
- ps: ./Build.ps1
@@ -18,4 +19,11 @@ deploy:
1819
secure: nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x
1920
skip_symbols: true
2021
on:
21-
branch: /^(dev|master)$/
22+
branch: /^(master)$/
23+
- provider: GitHub
24+
auth_token:
25+
secure: Bo3ypKpKFxinjR9ShkNekNvkob2iklHJU+UlYyfHtcFFIAa58SV2TkEd0xWxz633
26+
artifact: /Serilog.*\.nupkg/
27+
tag: v$(appveyor_build_version)
28+
on:
29+
branch: master

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"projects": [ "src", "test" ],
3-
"sdk": {
4-
"version": "1.0.0-rc1-final"
5-
}
2+
"projects": [ "src", "test" ],
3+
"sdk": {
4+
"version": "1.0.0-preview1-002702"
5+
}
66
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
4+
VisualStudioVersion = 14.0.25123.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{037440DE-440B-4129-9F7A-09B42D00397E}"
77
EndProject
@@ -14,23 +14,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{E9D1B5
1414
assets\Serilog.snk = assets\Serilog.snk
1515
EndProjectSection
1616
EndProject
17-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Serilog.Sinks.Console", "src\Serilog.Sinks.Console\Serilog.Sinks.Console.xproj", "{866A028E-27DB-49A0-AC78-E5FEF247C099}"
17+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Serilog.Enrichers.Thread", "src\Serilog.Enrichers.Thread\Serilog.Enrichers.Thread.xproj", "{E0BD3797-55A5-4E8C-8DE7-8487BEB75914}"
1818
EndProject
1919
Global
2020
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2121
Debug|Any CPU = Debug|Any CPU
2222
Release|Any CPU = Release|Any CPU
2323
EndGlobalSection
2424
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25-
{866A028E-27DB-49A0-AC78-E5FEF247C099}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26-
{866A028E-27DB-49A0-AC78-E5FEF247C099}.Debug|Any CPU.Build.0 = Debug|Any CPU
27-
{866A028E-27DB-49A0-AC78-E5FEF247C099}.Release|Any CPU.ActiveCfg = Release|Any CPU
28-
{866A028E-27DB-49A0-AC78-E5FEF247C099}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{E0BD3797-55A5-4E8C-8DE7-8487BEB75914}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{E0BD3797-55A5-4E8C-8DE7-8487BEB75914}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{E0BD3797-55A5-4E8C-8DE7-8487BEB75914}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{E0BD3797-55A5-4E8C-8DE7-8487BEB75914}.Release|Any CPU.Build.0 = Release|Any CPU
2929
EndGlobalSection
3030
GlobalSection(SolutionProperties) = preSolution
3131
HideSolutionNode = FALSE
3232
EndGlobalSection
3333
GlobalSection(NestedProjects) = preSolution
34-
{866A028E-27DB-49A0-AC78-E5FEF247C099} = {037440DE-440B-4129-9F7A-09B42D00397E}
34+
{E0BD3797-55A5-4E8C-8DE7-8487BEB75914} = {037440DE-440B-4129-9F7A-09B42D00397E}
3535
EndGlobalSection
3636
EndGlobal

src/Serilog.Enrichers.Thread/Serilog.Enrichers.Thread.xproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<PropertyGroup Label="Globals">
99
<ProjectGuid>e0bd3797-55a5-4e8c-8de7-8487beb75914</ProjectGuid>
1010
<RootNamespace>Serilog</RootNamespace>
11-
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
12-
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
11+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
12+
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
1313
</PropertyGroup>
1414
<PropertyGroup>
1515
<SchemaVersion>2.0</SchemaVersion>
1616
</PropertyGroup>
17-
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
17+
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
1818
</Project>

src/Serilog.Enrichers.Thread/ThreadLoggerConfigurationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Serilog
2222
{
2323
/// <summary>
24-
/// Extends <see cref="LoggerConfiguration"/> to add enrichers for <see cref="System.Thread"/>.
24+
/// Extends <see cref="LoggerConfiguration"/> to add enrichers for <see cref="Thread"/>.
2525
/// capabilities.
2626
/// </summary>
2727
public static class ThreadLoggerConfigurationExtensions
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
{
2-
"version": "2.0.0-beta-*",
2+
"version": "2.0.0",
33
"description": "Enrich Serilog events with properties from the current thread.",
44
"authors": [ "Serilog Contributors" ],
5-
"tags": [ "serilog", "thread", "enricher" ],
6-
"projectUrl": "http://serilog.net",
7-
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
8-
"iconUrl": "http://serilog.net/images/serilog-enricher-nuget.png",
5+
"packOptions": {
6+
"tags": [ "serilog", "thread", "enricher" ],
7+
"projectUrl": "http://serilog.net",
8+
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0",
9+
"iconUrl": "http://serilog.net/images/serilog-enricher-nuget.png"
10+
},
911
"dependencies": {
10-
"Serilog": "2.0.0-beta-511"
12+
"Serilog": "2.0.0"
1113
},
12-
"compilationOptions": {
13-
"keyFile": "../../assets/Serilog.snk"
14+
"buildOptions": {
15+
"keyFile": "../../assets/Serilog.snk",
16+
"xmlDoc": true,
17+
"warningsAsErrors": true
1418
},
1519
"frameworks": {
16-
"net45": {
20+
"net4.5": {
1721
},
18-
"dotnet5.1": {
22+
"netstandard1.3": {
23+
"dependencies": {
24+
"System.Threading.Thread": "4.0.0"
25+
}
1926
}
2027
}
2128
}

0 commit comments

Comments
 (0)