Skip to content

Commit 50ddec1

Browse files
authored
Merge pull request #33 from serilog/dev
2.2.1 Release
2 parents ac1b398 + 5b02759 commit 50ddec1

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,15 @@ and in XML
128128
### Filtering
129129

130130
Filters can be specified using the _Serilog.Filters.Expressions_ package; see the [README](https://github.com/serilog/serilog-filters-expressions) there for more information.
131+
132+
### Setting values from enumerations
133+
134+
When configuring sink settings with values from enumerations, use the member name, without specifying the name of the enumeration.
135+
136+
For example, to configure the `RollingInterval` of the [File Sink](https://github.com/serilog/serilog-sinks-file) to create a new log file per day, use `Day` instead of `RollingInterval.Day`:
137+
138+
```xml
139+
<add key="serilog:write-to:File.rollingInterval" value="Day"/>
140+
```
141+
142+
If you specify the the name of the enumeration, you'll receive an error similar to `System.ArgumentException: Requested value 'RollingInterval.Day' was not found`

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ artifacts:
1111
deploy:
1212
- provider: NuGet
1313
api_key:
14-
secure: nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x
14+
secure: bd9z4P73oltOXudAjPehwp9iDKsPtC+HbgshOrSgoyQKr5xVK+bxJQngrDJkHdY8
1515
skip_symbols: true
1616
on:
1717
branch: /^(master|dev)$/

src/Serilog.Settings.AppSettings/Serilog.Settings.AppSettings.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>XML configuration (System.Configuration &lt;appSettings&gt;) support for Serilog.</Description>
5-
<VersionPrefix>2.2.0</VersionPrefix>
5+
<VersionPrefix>2.2.1</VersionPrefix>
66
<Authors>Serilog Contributors</Authors>
77
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
88
<AssemblyName>Serilog.Settings.AppSettings</AssemblyName>
@@ -14,6 +14,8 @@
1414
<PackageIconUrl>https://serilog.net/images/serilog-configuration-nuget.png</PackageIconUrl>
1515
<PackageProjectUrl>https://github.com/serilog/serilog-settings-appsettings</PackageProjectUrl>
1616
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
17+
<RepositoryUrl>https://github.com/serilog/serilog-settings-appsettings</RepositoryUrl>
18+
<RepositoryType>git</RepositoryType>
1719
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1820
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1921
<DelaySign>false</DelaySign>

0 commit comments

Comments
 (0)