File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ To specify the formatter in XML `<appSettings>` provide its assembly-qualified t
30
30
31
31
``` xml
32
32
<appSettings >
33
- <add key =" serilog:using:File" value =" Serilog.Sinks.RollingFile " />
33
+ <add key =" serilog:using:File" value =" Serilog.Sinks.File " />
34
34
<add key =" serilog:write-to:File.path" value =" ./logs/myapp.json" />
35
35
<add key =" serilog:write-to:File.formatter"
36
36
value =" Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact" />
@@ -43,9 +43,9 @@ To specify formatter in json `appsettings.json` provide its assembly-qualified t
43
43
"Serilog" : {
44
44
"WriteTo" : [
45
45
{
46
- "Name" : " RollingFile " ,
46
+ "Name" : " File " ,
47
47
"Args" : {
48
- "pathFormat " : " ./logs/myapp.json" ,
48
+ "path " : " ./logs/myapp.json" ,
49
49
"formatter" : " Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments