Skip to content

Commit

Permalink
Merge pull request #46 from dampee/patch-1
Browse files Browse the repository at this point in the history
Update README - pathFormat is not an existing parameter
  • Loading branch information
nblumhardt authored Feb 1, 2021
2 parents e91e855 + 4d29a94 commit c1803e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ Sink assemblies must be specified using the `serilog:using` syntax. For example,
If the sink accepts parameters, these are specified by appending the parameter name to the setting.

```csharp
.WriteTo.RollingFile(@"C:\Logs\myapp-{Date}.txt", retainedFileCountLimit: 10)
.WriteTo.File(@"C:\Logs\myapp-{Date}.txt", retainedFileCountLimit: 10)
```

In XML:

```xml
<add key="serilog:write-to:RollingFile.pathFormat" value="C:\Logs\myapp-{Date}.txt" />
<add key="serilog:write-to:RollingFile.retainedFileCountLimit" value="10" />
<add key="serilog:write-to:File.path" value="C:\Logs\myapp-{Date}.txt" />
<add key="serilog:write-to:File.retainedFileCountLimit" value="10" />
```

Any environment variables specified in a setting value (e.g. `%TEMP%`) will be expanded appropriately when read.
Expand Down

0 comments on commit c1803e0

Please sign in to comment.