Skip to content

Commit 96e636e

Browse files
authored
Merge pull request #89 from serilog/dev
2.6.0 Release
2 parents 552d166 + ed384f1 commit 96e636e

38 files changed

+1871
-54
lines changed

Diff for: .editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 4
8+
9+
[*.{csproj,json,config,yml}]
10+
indent_size = 2
11+
12+
[*.sh]
13+
end_of_line = lf
14+
15+
[*.{cmd, bat}]
16+
end_of_line = crlf

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Configuration is read from the `Serilog` section.
2121
}
2222
```
2323

24-
This example relies on the _Serilog.Sinks.Literate_, _Serilog.Sinks.File_, _Serilog.Enrichers.Environment_ and _Serilog.Enrichers.Thread_ packages also being installed.
24+
This example relies on the _Serilog.Sinks.Literate_, _Serilog.Sinks.File_, _Serilog.Enrichers.Environment_, _Serilog.Settings.Configuration_ and _Serilog.Enrichers.Thread_ packages also being installed.
2525

2626
After installing this package, use `ReadFrom.Configuration()` and pass an `IConfiguration` object.
2727

Diff for: sample/Sample/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public static void Main(string[] args)
2525
do
2626
{
2727
logger.ForContext<Program>().Information("Hello, world!");
28+
logger.ForContext<Program>().Error("Hello, world!");
2829
logger.ForContext(Constants.SourceContextPropertyName, "Microsoft").Warning("Hello, world!");
30+
logger.ForContext(Constants.SourceContextPropertyName, "Microsoft").Error("Hello, world!");
2931
logger.ForContext(Constants.SourceContextPropertyName, "MyApp.Something.Tricky").Verbose("Hello, world!");
3032

3133
Console.WriteLine();

Diff for: sample/Sample/Sample.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.1" />
1818
<PackageReference Include="Serilog.Sinks.Async" Version="1.0.1" />
19-
<PackageReference Include="Serilog.Sinks.Literate" Version="2.0.0" />
19+
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
2020
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.0.0" />
2121
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.0.0" />
2222
<PackageReference Include="Serilog.Enrichers.Thread" Version="2.0.0" />

Diff for: sample/Sample/appsettings.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Serilog": {
3-
"Using": ["Serilog.Sinks.Literate"],
3+
"Using": ["Serilog.Sinks.Console"],
44
"MinimumLevel": {
55
"Default": "Debug",
66
"Override": {
@@ -14,9 +14,10 @@
1414
"configureLogger": {
1515
"WriteTo": [
1616
{
17-
"Name": "LiterateConsole",
17+
"Name": "Console",
1818
"Args": {
19-
"outputTemplate": "[{Timestamp:HH:mm:ss} {SourceContext} [{Level}] {Message}{NewLine}{Exception}"
19+
"outputTemplate": "[{Timestamp:HH:mm:ss} {SourceContext} [{Level}] {Message}{NewLine}{Exception}",
20+
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console"
2021
}
2122
}
2223
]

Diff for: serilog-settings-configuration.sln

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26228.10
4+
VisualStudioVersion = 15.0.27130.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4E41FD57-5FAB-4E3C-B16E-463DE98338BC}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{62D0B904-1D11-4962-A4A8-DE28672AA28B}"
99
ProjectSection(SolutionItems) = preProject
10+
.editorconfig = .editorconfig
1011
appveyor.yml = appveyor.yml
1112
Build.ps1 = Build.ps1
1213
CHANGES.md = CHANGES.md
1314
LICENSE = LICENSE
1415
README.md = README.md
16+
serilog-settings-configuration.sln.DotSettings = serilog-settings-configuration.sln.DotSettings
1517
EndProjectSection
1618
EndProject
1719
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}"
@@ -24,6 +26,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Settings.Configurat
2426
EndProject
2527
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "sample\Sample\Sample.csproj", "{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}"
2628
EndProject
29+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestDummies", "test\TestDummies\TestDummies.csproj", "{B7CF5068-DD19-4868-A268-5280BDE90361}"
30+
EndProject
2731
Global
2832
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2933
Debug|Any CPU = Debug|Any CPU
@@ -42,6 +46,10 @@ Global
4246
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
4347
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
4448
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{B7CF5068-DD19-4868-A268-5280BDE90361}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{B7CF5068-DD19-4868-A268-5280BDE90361}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{B7CF5068-DD19-4868-A268-5280BDE90361}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{B7CF5068-DD19-4868-A268-5280BDE90361}.Release|Any CPU.Build.0 = Release|Any CPU
4553
EndGlobalSection
4654
GlobalSection(SolutionProperties) = preSolution
4755
HideSolutionNode = FALSE
@@ -50,5 +58,9 @@ Global
5058
{21FF98ED-E68C-4A67-B241-C8D6122FAD7D} = {4E41FD57-5FAB-4E3C-B16E-463DE98338BC}
5159
{F793C6E8-C40A-4018-8884-C97E2BE38A54} = {D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}
5260
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD} = {D24872B9-57F3-42A7-BC8D-F9DA222FCE1B}
61+
{B7CF5068-DD19-4868-A268-5280BDE90361} = {D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}
62+
EndGlobalSection
63+
GlobalSection(ExtensibilityGlobals) = postSolution
64+
SolutionGuid = {485F8843-42D7-4267-B5FB-20FE9181DEE9}
5365
EndGlobalSection
5466
EndGlobal

0 commit comments

Comments
 (0)