Skip to content

Commit 611058e

Browse files
authored
Merge pull request #275 from skomis-mm/docFix
Readme update
2 parents daee6e1 + a9c7a5b commit 611058e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
3.2.0 (pre-release)
3+
3.2.0
44

55
* #162 - LoggingFilterSwitch support
66
* #202 - added support to AuditTo.Logger

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,19 @@ Some Serilog packages require a reference to a logger configuration object. The
269269

270270
When the configuration specifies a discrete value for a parameter (such as a string literal), the package will attempt to convert that value to the target method's declared CLR type of the parameter. Additional explicit handling is provided for parsing strings to `Uri`, `TimeSpan`, `enum`, arrays and custom collections.
271271

272+
### Static member support
273+
274+
Static member access can be used for passing to the configuration argument via [special](https://github.com/serilog/serilog-settings-configuration/blob/dev/test/Serilog.Settings.Configuration.Tests/StringArgumentValueTests.cs#L35) syntax:
275+
276+
```json
277+
{
278+
"Args": {
279+
"encoding": "System.Text.Encoding::UTF8",
280+
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console"
281+
}
282+
}
283+
```
284+
272285
### Complex parameter value binding
273286

274287
If the parameter value is not a discrete value, the package will use the configuration binding system provided by _[Microsoft.Extensions.Options.ConfigurationExtensions](https://www.nuget.org/packages/Microsoft.Extensions.Options.ConfigurationExtensions/)_ to attempt to populate the parameter. Almost anything that can be bound by `IConfiguration.Get<T>` should work with this package. An example of this is the optional `List<Column>` parameter used to configure the .NET Standard version of the _[Serilog.Sinks.MSSqlServer](https://github.com/serilog/serilog-sinks-mssqlserver)_ package.
@@ -360,7 +373,7 @@ In order to make auto-discovery of configuration assemblies work, modify Functio
360373
</Target>
361374

362375
<Target Name="FunctionsPublishDepsCopy" AfterTargets="Publish">
363-
<Copy SourceFiles="$(PublishDir)$(AssemblyName).deps.json" DestinationFiles="$(PublishDir)bin\$(AssemblyName).deps.json" />
376+
<Copy SourceFiles="$(OutDir)$(AssemblyName).deps.json" DestinationFiles="$(PublishDir)bin\$(AssemblyName).deps.json" />
364377
</Target>
365378

366379
</Project>

0 commit comments

Comments
 (0)