Skip to content

Commit 1dd54e3

Browse files
authored
Note on overriding minimum levels [Skip CI]
1 parent 7d99784 commit 1dd54e3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,19 @@ To use this package in .NET 4.x applications, add `preserveCompilationContext` t
6464
}
6565
},
6666
```
67+
68+
### Level overrides
69+
70+
The `MinimumLevel` configuration property can be set to a single value as in the sample above, or, levels can be overridden per logging source.
71+
72+
This is useful in ASP.NET Core applications, which will often specify minimum level as:
73+
74+
```json
75+
"MinimumLevel": {
76+
"Default": "Information",
77+
"Override": {
78+
"Microsoft": "Warning",
79+
"System": "Warning"
80+
}
81+
}
82+
```

0 commit comments

Comments
 (0)