Skip to content

Commit 99fa29d

Browse files
authored
Merge pull request #95 from serilog/adamchester-patch-1
Use `Console` instead of `LiterateConsole` in README
2 parents f724410 + 6c9d9dc commit 99fa29d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Configuration is read from the `Serilog` section.
77
```json
88
{
99
"Serilog": {
10-
"Using": ["Serilog.Sinks.Literate"],
10+
"Using": ["Serilog.Sinks.Console"],
1111
"MinimumLevel": "Debug",
1212
"WriteTo": [
13-
{ "Name": "LiterateConsole" },
13+
{ "Name": "Console" },
1414
{ "Name": "File", "Args": { "path": "%TEMP%\\Logs\\serilog-configuration-sample.txt" } }
1515
],
1616
"Enrich": ["FromLogContext", "WithMachineName", "WithThreadId"],
@@ -21,7 +21,7 @@ Configuration is read from the `Serilog` section.
2121
}
2222
```
2323

24-
This example relies on the _Serilog.Sinks.Literate_, _Serilog.Sinks.File_, _Serilog.Enrichers.Environment_, _Serilog.Settings.Configuration_ and _Serilog.Enrichers.Thread_ packages also being installed.
24+
This example relies on the _Serilog.Sinks.Console_, _Serilog.Sinks.File_, _Serilog.Enrichers.Environment_, _Serilog.Settings.Configuration_ and _Serilog.Enrichers.Thread_ packages also being installed.
2525

2626
After installing this package, use `ReadFrom.Configuration()` and pass an `IConfiguration` object.
2727

@@ -46,7 +46,7 @@ public class Program
4646
The `WriteTo` and `Enrich` sections support the same syntax, for example the following is valid if no arguments are needed by the sinks:
4747

4848
```json
49-
"WriteTo": ["LiterateConsole", "DiagnosticTrace"]
49+
"WriteTo": ["Console", "DiagnosticTrace"]
5050
```
5151

5252
Or alternatively, the long-form (`"Name":` ...) syntax from the first example can be used when arguments need to be supplied.

0 commit comments

Comments
 (0)