Skip to content

Commit

Permalink
Merge pull request #136 from DavidCoghlan/patch-1
Browse files Browse the repository at this point in the history
Update docs on disabling built-in logging
  • Loading branch information
nblumhardt authored Sep 25, 2019
2 parents 77c2c1a + 390fa72 commit e6e14e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ Or [as JSON](https://github.com/serilog/serilog-formatting-compact):
}
```

To enable the middleware, first change the minimum level for `Microsoft` to `Warning` in your logger configuration or _appsettings.json_ file:
To enable the middleware, first change the minimum level for `Microsoft.AspNetCore` to `Warning` in your logger configuration or _appsettings.json_ file:

```csharp
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning)
```

Then, in your application's _Startup.cs_, add the middleware with `UseSerilogRequestLogging()`:
Expand Down

0 comments on commit e6e14e6

Please sign in to comment.