Skip to content

Commit 1a6689f

Browse files
authored
Added JSON configuration example [Skip CI]
1 parent e01d84d commit 1a6689f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,24 @@ The default memory buffer feeding the worker thread is capped to 10,000 items, a
4141

4242
### XML `<appSettings>` and JSON configuration
4343

44-
XML and JSON configuration support has not yet been added for this wrapper.
44+
Using [Serilog.Settings.Configuration](https://github.com/serilog/serilog-settings-configuration) JSON:
45+
46+
```json
47+
{
48+
"Serilog": {
49+
"WriteTo": [{
50+
"Name": "Async",
51+
"Args": {
52+
"configure": [{
53+
"Name": "LiterateConsole"
54+
}]
55+
}
56+
}]
57+
}
58+
}
59+
```
60+
61+
XML configuration support has not yet been added for this wrapper.
4562

4663
### About this sink
4764

0 commit comments

Comments
 (0)