Skip to content

Commit 85e9eab

Browse files
committed
Readme Cleanup.
1 parent e143130 commit 85e9eab

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

samples/SimpleWebAPISample/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
This is a simple example illustrating the use of Serilog with WebAPI.
2+
3+
The project was created with the following steps.
4+
5+
* Create the project and add NuGet dependencies
16
```
27
dotnet new webapi
38
dotnet add package Serilog.Extensions.Logging
49
dotnet add package Serilog.Sinks.Literate
5-
```
10+
```
11+
12+
* Extend the logging to include Serilog. See `Program.cs`
13+
```
14+
.ConfigureLogging(log =>
15+
{
16+
log.AddSerilog(logger: Log.Logger, dispose: true);
17+
})
18+
```
19+
20+
* Logging can then used directly to Serilog or via the `Microsoft.Extensions.Logging` pipeline.

samples/SimpleWebSample/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
This is a simple example illustrating the use of Serilog with a web app.
2+
3+
The project was created with the following steps.
4+
5+
* Create the project and add NuGet dependencies
16
```
27
dotnet new web
38
dotnet add package Serilog.Extensions.Logging
49
dotnet add package Serilog.Sinks.Literate
5-
```
10+
```
11+
12+
* Extend the logging to include Serilog. See `Program.cs`
13+
```
14+
.ConfigureLogging(log =>
15+
{
16+
log.AddSerilog(logger: Log.Logger, dispose: true);
17+
})
18+
```
19+
20+
* Logging can then used directly to Serilog or via the `Microsoft.Extensions.Logging` pipeline.

0 commit comments

Comments
 (0)