File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ Log.Logger = new LoggerConfiguration()
26
26
.CreateLogger ();
27
27
```
28
28
29
- To specify the formatter in XML ` <appSettings> ` provide its assembly-qualified type name ( ** requires Serilog 2.1+ ** ) :
29
+ To specify the formatter in XML ` <appSettings> ` provide its assembly-qualified type name:
30
30
31
31
``` xml
32
32
<appSettings >
33
- <add key =" serilog:using:RollingFile " value =" Serilog.Sinks.RollingFile" />
34
- <add key =" serilog:write-to:RollingFile.pathFormat " value =" ./logs/myapp.json" />
35
- <add key =" serilog:write-to:RollingFile .formatter"
33
+ <add key =" serilog:using:File " value =" Serilog.Sinks.RollingFile" />
34
+ <add key =" serilog:write-to:File.path " value =" ./logs/myapp.json" />
35
+ <add key =" serilog:write-to:File .formatter"
36
36
value =" Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact" />
37
37
```
38
38
You can’t perform that action at this time.
0 commit comments