Skip to content

2.6.0 Release #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Mar 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
41e7349
Dev version bump [Skip CI]
nblumhardt May 18, 2017
f89fa99
Updated StringArgumentValue.ConvertTo to let the class not found exce…
elogicjp Sep 6, 2017
fae623c
Merge pull request #67 from formix/dev
nblumhardt Sep 7, 2017
2d6652a
Added support for abstract classes
Nov 7, 2017
6738464
Merge pull request #74 from snoozbuster/dev
nblumhardt Nov 8, 2017
16477c1
Support for static member as the value of setting using `::`
Dec 13, 2017
c6ec5b4
Support for static member as the value of setting using `::`
MrMon3y Dec 13, 2017
d1a8fa6
Merge branch 'appsettings-static-member' of https://github.com/MrMon3…
MrMon3y Dec 13, 2017
116d0e6
Support for static member as the value of setting using `::`
MrMon3y Dec 13, 2017
49bc988
Merge branch 'appsettings-static-member' of https://github.com/MrMon3…
MrMon3y Dec 13, 2017
7d08030
Merge branch 'appsettings-static-member' of https://github.com/MrMon3…
MrMon3y Dec 13, 2017
ac9965b
Remove unused 'TestDummies' and Update Sample project to use Console …
MrMon3y Dec 13, 2017
a3e3348
remove stale PackageReference and Class
dougmoney Dec 14, 2017
ed1ffa9
remove stale PackageReference and Class
MrMon3y Dec 14, 2017
c9bd655
Merge branch 'appsettings-static-member' of https://github.com/MrMon3…
MrMon3y Dec 14, 2017
ca759ac
Merge pull request #77 from MrMon3y/appsettings-static-member
tsimbalar Dec 15, 2017
e76023e
updated readme
jayanthakgjls Jan 30, 2018
c342d12
Merge pull request #84 from jayanthakgjls/patch-1
nblumhardt Jan 30, 2018
61a6603
Add more "end-to-end" tests for ConfigurationSettings (WIP)
Feb 7, 2018
3f64b11
Change the default namespace so namespaces match folders
Feb 8, 2018
815a796
Support for AuditTo in configuration
Feb 8, 2018
e863526
Add tests for different syntaxes of WriteTo
Feb 8, 2018
75b2036
Add Tests for static accessors
Feb 8, 2018
6e8f73a
Reference Serilog v2.6
Feb 9, 2018
190e1a9
Minor version bump -> 2.5.0
Feb 9, 2018
6c1e28f
Merge pull request #87 from tsimbalar/auditto
nblumhardt Feb 10, 2018
7d1f277
Dev version bump (v2.5.1) [Skip CI]
tsimbalar Feb 12, 2018
12f563e
Add support for LoggingLevelSwitch
Feb 12, 2018
7034ca6
Re-format code according to serilog standards
Feb 13, 2018
af9efd3
Merge pull request #88 from tsimbalar/loglevelswitchsupport
nblumhardt Feb 13, 2018
ed384f1
Minor version bump
nblumhardt Feb 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.{csproj,json,config,yml}]
indent_size = 2

[*.sh]
end_of_line = lf

[*.{cmd, bat}]
end_of_line = crlf
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Configuration is read from the `Serilog` section.
}
```

This example relies on the _Serilog.Sinks.Literate_, _Serilog.Sinks.File_, _Serilog.Enrichers.Environment_ and _Serilog.Enrichers.Thread_ packages also being installed.
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.

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

Expand Down
2 changes: 2 additions & 0 deletions sample/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public static void Main(string[] args)
do
{
logger.ForContext<Program>().Information("Hello, world!");
logger.ForContext<Program>().Error("Hello, world!");
logger.ForContext(Constants.SourceContextPropertyName, "Microsoft").Warning("Hello, world!");
logger.ForContext(Constants.SourceContextPropertyName, "Microsoft").Error("Hello, world!");
logger.ForContext(Constants.SourceContextPropertyName, "MyApp.Something.Tricky").Verbose("Hello, world!");

Console.WriteLine();
Expand Down
2 changes: 1 addition & 1 deletion sample/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.1" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.0.1" />
<PackageReference Include="Serilog.Sinks.Literate" Version="2.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.0.0" />
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.0.0" />
<PackageReference Include="Serilog.Enrichers.Thread" Version="2.0.0" />
Expand Down
7 changes: 4 additions & 3 deletions sample/Sample/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Serilog": {
"Using": ["Serilog.Sinks.Literate"],
"Using": ["Serilog.Sinks.Console"],
"MinimumLevel": {
"Default": "Debug",
"Override": {
Expand All @@ -14,9 +14,10 @@
"configureLogger": {
"WriteTo": [
{
"Name": "LiterateConsole",
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {SourceContext} [{Level}] {Message}{NewLine}{Exception}"
"outputTemplate": "[{Timestamp:HH:mm:ss} {SourceContext} [{Level}] {Message}{NewLine}{Exception}",
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console"
}
}
]
Expand Down
14 changes: 13 additions & 1 deletion serilog-settings-configuration.sln
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.10
VisualStudioVersion = 15.0.27130.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4E41FD57-5FAB-4E3C-B16E-463DE98338BC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{62D0B904-1D11-4962-A4A8-DE28672AA28B}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
appveyor.yml = appveyor.yml
Build.ps1 = Build.ps1
CHANGES.md = CHANGES.md
LICENSE = LICENSE
README.md = README.md
serilog-settings-configuration.sln.DotSettings = serilog-settings-configuration.sln.DotSettings
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}"
Expand All @@ -24,6 +26,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Settings.Configurat
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "sample\Sample\Sample.csproj", "{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestDummies", "test\TestDummies\TestDummies.csproj", "{B7CF5068-DD19-4868-A268-5280BDE90361}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -42,6 +46,10 @@ Global
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD}.Release|Any CPU.Build.0 = Release|Any CPU
{B7CF5068-DD19-4868-A268-5280BDE90361}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7CF5068-DD19-4868-A268-5280BDE90361}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7CF5068-DD19-4868-A268-5280BDE90361}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7CF5068-DD19-4868-A268-5280BDE90361}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -50,5 +58,9 @@ Global
{21FF98ED-E68C-4A67-B241-C8D6122FAD7D} = {4E41FD57-5FAB-4E3C-B16E-463DE98338BC}
{F793C6E8-C40A-4018-8884-C97E2BE38A54} = {D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}
{A00E5E32-54F9-401A-BBA1-2F6FCB6366CD} = {D24872B9-57F3-42A7-BC8D-F9DA222FCE1B}
{B7CF5068-DD19-4868-A268-5280BDE90361} = {D551DCB0-7771-4D01-BEBD-F7B57D1CF0E3}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {485F8843-42D7-4267-B5FB-20FE9181DEE9}
EndGlobalSection
EndGlobal
Loading