Skip to content

Commit e6e14e6

Browse files
authored
Merge pull request #136 from DavidCoghlan/patch-1
Update docs on disabling built-in logging
2 parents 77c2c1a + 390fa72 commit e6e14e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ Or [as JSON](https://github.com/serilog/serilog-formatting-compact):
109109
}
110110
```
111111

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

114114
```csharp
115-
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
115+
.MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning)
116116
```
117117

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

0 commit comments

Comments
 (0)