Skip to content

Commit fab606c

Browse files
authored
Merge pull request #35 from serilog/dev
2.0.0 Release
2 parents 1090bb1 + 365c3cf commit fab606c

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(Test-Path .\artifacts) {
1111

1212
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
1313
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
14-
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
14+
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "main" -and $revision -ne "local"]
1515
$commitHash = $(git rev-parse --short HEAD)
1616
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
1717

@@ -45,4 +45,4 @@ foreach ($test in ls test/*.Tests) {
4545
Pop-Location
4646
}
4747

48-
Pop-Location
48+
Pop-Location

appveyor.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: '{build}'
22
skip_tags: true
3-
image: Visual Studio 2019
4-
configuration: Release
3+
image: Visual Studio 2022
54
install:
65
- ps: mkdir -Force ".\build\" | Out-Null
76
build_script:
@@ -19,15 +18,15 @@ only_commits:
1918
deploy:
2019
- provider: NuGet
2120
api_key:
22-
secure: GvzC+u5V9MCsCq/tMKxGvzhxRxxRk0RDHpKOjySL+WoJgIKnrjoqZRgdjEFrY3SC
21+
secure: pXU3a6E4Uw0FJdGVwt+GP5XCjYU5KDUe6XWE77fWk6K0ujid44X9EbIYxhrhChbu
2322
skip_symbols: true
2423
on:
25-
branch: /^(master|dev)$/
24+
branch: /^(main|dev)$/
2625
- provider: GitHub
2726
auth_token:
2827
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
2928
artifact: /Serilog.*\.nupkg/
3029
tag: v$(appveyor_build_version)
3130
on:
32-
branch: master
31+
branch: main
3332

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.202"
3+
"version": "5.0.202",
4+
"rollForward": "latestMajor"
45
}
56
}

src/Serilog.Formatting.Compact.Reader/LogEventReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static LogEvent ReadFromJObject(int lineNumber, JObject jObject)
124124

125125
var level = LogEventLevel.Information;
126126
if (TryGetOptionalField(lineNumber, jObject, ClefFields.Level, out string l))
127-
level = (LogEventLevel)Enum.Parse(typeof(LogEventLevel), l);
127+
level = (LogEventLevel)Enum.Parse(typeof(LogEventLevel), l, true);
128128
Exception exception = null;
129129
if (TryGetOptionalField(lineNumber, jObject, ClefFields.Exception, out string ex))
130130
exception = new TextException(ex);

src/Serilog.Formatting.Compact.Reader/Serilog.Formatting.Compact.Reader.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>1.0.5</VersionPrefix>
4+
<VersionPrefix>2.0.0</VersionPrefix>
55
<TargetFrameworks>netstandard2.1;netstandard2.0;netstandard1.0;net45</TargetFrameworks>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -19,7 +19,7 @@
1919
</PropertyGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
22+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2323
<PackageReference Include="Serilog" Version="2.3.0" />
2424
</ItemGroup>
2525

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{"@t":"2016-10-12T04:20:58.0554314Z","@mt":"Hello, {@User}","User":{"Name":"nblumhardt","Id":101}}
22
{"@t":"2016-10-12T04:20:58.0684369Z","@mt":"Number {N:x8}","@r":["0000002a"],"N":42}
3-
{"@t":"2016-10-12T04:20:58.0724384Z","@mt":"Tags are {Tags}","@l":"Warning","Tags":["test","orange"]}
4-
{"@t":"2016-10-12T04:20:58.0904378Z","@mt":"Something failed","@l":"Error","@x":"System.DivideByZeroException: Attempted to divide by zero.\r\n at Example.Program.Main(String[] args) in C:\\Development\\nblumhardt\\serilog-formatting-compact-reader\\example\\RoundTrip\\Program.cs:line 24"}
3+
{"@t":"2016-10-12T04:20:58.0724384Z","@mt":"Tags are {Tags}","@l":"WaRNiNg","Tags":["test","orange"]}
4+
{"@t":"2016-10-12T04:20:58.0904378Z","@mt":"Something failed","@l":"ERROR","@x":"System.DivideByZeroException: Attempted to divide by zero.\r\n at Example.Program.Main(String[] args) in C:\\Development\\nblumhardt\\serilog-formatting-compact-reader\\example\\RoundTrip\\Program.cs:line 24"}
55
{"@t":"2016-10-12T04:20:59.0554314Z","@m":"Hello, nblumhardt","@i":"123abc00","N":42}
66
{"@t":"2019-09-10T04:56:50.608125300+00:00","@l":null,"Method":"POST","@mt":"HTTP {Method} {RequestPath} responded {StatusCode} in {Elapsed:0.000} ms","RequestPath":"/api/customers","SourceContext":"DemoMiddleware","@r":["799.724"],"Elapsed":799.72430000000008,"@i":2568106828,"@m":"HTTP POST /api/customers responded 400 in 799.724 ms","RequestId":"8786927172fc4abe","StatusCode":400}

test/Serilog.Formatting.Compact.Reader.Tests/Serilog.Formatting.Compact.Reader.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
2424
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0" />
2525
<PackageReference Include="xunit" Version="2.3.0" />
26-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
26+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2727
</ItemGroup>
2828

2929
<ItemGroup>

0 commit comments

Comments
 (0)