Skip to content

Commit 816581f

Browse files
authored
Merge pull request #238 from serilog/dev
3.2.0 Release
2 parents fc0969f + 60ed15e commit 816581f

39 files changed

+1158
-275
lines changed

.editorconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ trim_trailing_whitespace = true
55
insert_final_newline = true
66
indent_style = space
77
indent_size = 4
8+
end_of_line = lf
89

9-
[*.{csproj,json,config,yml}]
10+
[*.{csproj,json,config,yml,props}]
1011
indent_size = 2
1112

1213
[*.sh]

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,6 @@ FakesAssemblies/
201201
project.lock.json
202202

203203
#Test files
204-
*.txt
204+
*.txt
205+
206+
artifacts/

.travis.yml

-11
This file was deleted.

.vscode/launch.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/sample/Sample/bin/Debug/netcoreapp3.1/Sample.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/sample/Sample",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "integratedTerminal",
18+
"internalConsoleOptions": "neverOpen",
19+
"stopAtEntry": false,
20+
"linux": {
21+
"env": {
22+
"TEMP": "/tmp"
23+
}
24+
}
25+
},
26+
{
27+
"name": ".NET Core Attach",
28+
"type": "coreclr",
29+
"request": "attach",
30+
"processId": "${command:pickProcess}"
31+
}
32+
]
33+
}

.vscode/tasks.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/sample/Sample/Sample.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/sample/Sample/Sample.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"${workspaceFolder}/sample/Sample/Sample.csproj",
36+
"/property:GenerateFullPaths=true",
37+
"/consoleloggerparameters:NoSummary"
38+
],
39+
"problemMatcher": "$msCompile"
40+
}
41+
]
42+
}

Build.ps1

+37-15
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,70 @@ echo "build: Build started"
22

33
Push-Location $PSScriptRoot
44

5-
if(Test-Path .\artifacts) {
6-
echo "build: Cleaning .\artifacts"
7-
Remove-Item .\artifacts -Force -Recurse
5+
if (Test-Path .\artifacts) {
6+
echo "build: Cleaning .\artifacts"
7+
Remove-Item .\artifacts -Force -Recurse
88
}
99

1010
& dotnet restore --no-cache
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

1616
echo "build: Version suffix is $suffix"
1717

18-
foreach ($src in ls src/*) {
18+
foreach ($src in dir src/*) {
1919
Push-Location $src
2020

21-
echo "build: Packaging project in $src"
21+
echo "build: Packaging project in $src"
2222

23-
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix --include-source
24-
if($LASTEXITCODE -ne 0) { exit 1 }
23+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix -p:ContinuousIntegrationBuild=true
24+
if ($LASTEXITCODE -ne 0) { exit 1 }
2525

2626
Pop-Location
2727
}
2828

29-
foreach ($test in ls test/*.PerformanceTests) {
29+
foreach ($test in dir test/*.PerformanceTests) {
3030
Push-Location $test
3131

32-
echo "build: Building performance test project in $test"
32+
echo "build: Building performance test project in $test"
3333

3434
& dotnet build -c Release
35-
if($LASTEXITCODE -ne 0) { exit 2 }
35+
if ($LASTEXITCODE -ne 0) { exit 2 }
3636

3737
Pop-Location
3838
}
3939

40-
foreach ($test in ls test/*.Tests) {
40+
foreach ($test in dir test/*.Tests) {
4141
Push-Location $test
4242

43-
echo "build: Testing project in $test"
43+
echo "build: Testing project in $test"
4444

45-
& dotnet test -c Release
46-
if($LASTEXITCODE -ne 0) { exit 3 }
45+
if ($PSVersionTable.Platform -eq "Unix") {
46+
& dotnet test -c Release -f netcoreapp2.1
47+
& dotnet test -c Release -f netcoreapp3.1
48+
& dotnet test -c Release -f net50
49+
} else {
50+
& dotnet test -c Release
51+
}
52+
53+
if ($LASTEXITCODE -ne 0) { exit 3 }
54+
55+
Pop-Location
56+
}
57+
58+
if ($PSVersionTable.Platform -eq "Unix") {
59+
Push-Location sample/Sample
60+
61+
& dotnet run -f netcoreapp2.1 -c Release --run-once
62+
if ($LASTEXITCODE -ne 0) { exit 4 }
63+
64+
& dotnet run -f netcoreapp3.1 -c Release --run-once
65+
if ($LASTEXITCODE -ne 0) { exit 4 }
66+
67+
& dotnet run -f net50 -c Release --run-once
68+
if ($LASTEXITCODE -ne 0) { exit 4 }
4769

4870
Pop-Location
4971
}

CHANGES.md

+87-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,90 @@
1+
# Changelog
2+
3+
3.2.0 (pre-release)
4+
5+
* #162 - LoggingFilterSwitch support
6+
* #202 - added support to AuditTo.Logger
7+
* #203 - added support for custom types in arrays and custom collections
8+
* #218 - fixed an issue with `dotnet restore` with `rid` specified if referenced from `netstandard` project
9+
* #219 - reduced search graph for configuration dlls to avoid native assets
10+
* #221 - added support for conditional/leveled enrichers from Serilog 2.9+
11+
* #222 - updated Microsoft.Extensions.DependencyModel
12+
* #231 - make '$' sign optional for minimum level / filter switch declarations
13+
* #237 - DependencyContextAssemblyFinder fix: check `serilog` at the start of the name for any dependent package
14+
* #239 - handle NotSupportedException for .net 5.0 single file applications
15+
* #260 - skip static constructor on binding for complex parameters types
16+
17+
3.1.0
18+
19+
* #155 - improve SelfLog output when misconfigured
20+
* #160 - respect dynamic logging level changes for LevelSwitch section
21+
* #158 - update NuGet package license format to new format
22+
* #159 - DllScanningAssemblyFinder fixes #157, #150, #122, #156
23+
* #161 - support simple type names for Serilog types
24+
* #151 - no longer rely on static state in ConfigurationReader
25+
* #179 - added missing null checks for settingConfiguration
26+
* #163 - added new ReadFrom.Configuration(...) overloads; marked old as obsolete
27+
* #176 - added test to show how to filter child contexts
28+
29+
3.0.1
30+
31+
* #142 - Fix IConfiguration parameters not being populated
32+
* #143 - Fix ReadFrom.ConfigurationSection() looking for sections below a root Serilog section
33+
34+
3.0.0
35+
36+
* #91 & #92 - Fix cherrypick from master
37+
* #97 - Support of IConfiguration parameters & IConfigurationSection parameters
38+
* #83 - Updated dependencies of Microsoft.Extensions.DependencyModel,
39+
Microsoft.Extensions.Configuration.Abstraction & Microsoft.Extensions.Options.ConfigurationExtensions per TFM
40+
* #98 - specify string array params
41+
* Target Framework change to netcoreapp2.0
42+
* Build updates including addition of Travis Build
43+
* #105 - detect and fail on ambiguous configurations
44+
* #110 - destructure support
45+
* #111 - case-insensitive argument matching
46+
* #132 - choose string overloads to resolve binding ambiguities
47+
* #134 - specify repository URL in package
48+
* #124 - build a .NET 4.6.1 target
49+
* #136 - control assembly source
50+
* #138 - remove unnecessary package ref
51+
* #139 - remove unused class
52+
* #140 - expand support for destructure/enrich/filter configuration
53+
54+
2.6.1
55+
56+
* #92 - fix WriteTo.Logger handling
57+
58+
2.6.0
59+
60+
* #67 - improve error reporting when trying to convert from a missing class
61+
* #74 - support abstract classes (in addition to interfaces) as values
62+
* #84 - (documentation update)
63+
* #88 - LoggingLevelSwitch support
64+
65+
2.4.0
66+
67+
* #46 - configure sub-loggers through JSON settings
68+
* #48 - permit multiple sinks of the same kind
69+
70+
2.3.1
71+
72+
* #44 - fix ReadFrom.Configuration() on AWS Lambda; VS 2017 tooling
73+
74+
2.3.0
75+
76+
* #40 - fix loading of configuration assemblies with names differing from their packages
77+
* #36 - "Filter" support
78+
79+
2.2.0
80+
81+
* #20 - support MSBuild (non-project.json) projects
82+
183
2.1.0
2-
* #14 - MinimumLevel.Override()
3-
* #15 - Overload selection fix
84+
85+
* #14 - MinimumLevel.Override()
86+
* #15 - Overload selection fix
487

588
2.0.0
6-
* Initial version
7-
89+
90+
* Initial version

Directory.Build.props

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
5+
<TreatSpecificWarningsAsErrors />
6+
</PropertyGroup>
7+
8+
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
9+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="all" />
10+
</ItemGroup>
11+
</Project>

0 commit comments

Comments
 (0)