Skip to content

Commit 918decf

Browse files
authored
Remove obsolete LiterateConsole usage [Skip CI]
1 parent 6df25c9 commit 918decf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ Valid values are those defined in the `LogEventLevel` enumeration: `Verbose`, `D
5050
Sinks are added with the `serilog:write-to` key. The setting name matches the configuration method name that you'd use in code, so the following are equivalent:
5151

5252
```csharp
53-
.WriteTo.LiterateConsole()
53+
.WriteTo.Console()
5454
```
5555

5656
In XML:
5757

5858
```xml
59-
<add key="serilog:write-to:LiterateConsole" />
59+
<add key="serilog:write-to:Console" />
6060
```
6161

6262
**NOTE: When using `serilog:*` keys need to be unique.**
6363

6464
Sink assemblies must be specified using the `serilog:using` syntax. For example, to configure
6565

6666
```csharp
67-
<add key="serilog:using:LiterateConsole" value="Serilog.Sinks.Literate" />
68-
<add key="serilog:write-to:LiterateConsole"/>
67+
<add key="serilog:using:Console" value="Serilog.Sinks.Console" />
68+
<add key="serilog:write-to:Console"/>
6969
```
7070

7171
If the sink accepts parameters, these are specified by appending the parameter name to the setting.
@@ -125,4 +125,6 @@ and in XML
125125
<add key="serilog:minimum-level:override:Microsoft.AspNetCore.Mvc" value="Error" />
126126
```
127127

128-
See the [Serilog documentation](https://github.com/serilog/serilog/wiki/AppSettings) for further information.
128+
### Filtering
129+
130+
Filters can be specified using the _Serilog.Filters.Expressions_ package; see the [README](https://github.com/serilog/serilog-filters-expressions) there for more information.

0 commit comments

Comments
 (0)