Skip to content

Commit 1e9815a

Browse files
committed
Docs: Use File sink in examples
1 parent b57a8e6 commit 1e9815a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To specify the formatter in XML `<appSettings>` provide its assembly-qualified t
3030

3131
```xml
3232
<appSettings>
33-
<add key="serilog:using:File" value="Serilog.Sinks.RollingFile" />
33+
<add key="serilog:using:File" value="Serilog.Sinks.File" />
3434
<add key="serilog:write-to:File.path" value="./logs/myapp.json" />
3535
<add key="serilog:write-to:File.formatter"
3636
value="Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact" />
@@ -43,9 +43,9 @@ To specify formatter in json `appsettings.json` provide its assembly-qualified t
4343
"Serilog": {
4444
"WriteTo": [
4545
{
46-
"Name": "RollingFile",
46+
"Name": "File",
4747
"Args": {
48-
"pathFormat": "./logs/myapp.json",
48+
"path": "./logs/myapp.json",
4949
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
5050
}
5151
}

0 commit comments

Comments
 (0)