Skip to content

Commit 2899f18

Browse files
authored
Address #23378 (#30903)
1 parent fbff303 commit 2899f18

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/core/extensions/logging.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Logging
33
author: IEvangelist
44
description: Learn how to use the logging framework provided by the Microsoft.Extensions.Logging NuGet package.
55
ms.author: dapine
6-
ms.date: 06/27/2022
6+
ms.date: 08/29/2022
77
---
88

99
# Logging in .NET
@@ -36,10 +36,11 @@ Logging configuration is commonly provided by the `Logging` section of *appsetti
3636

3737
In the preceding JSON:
3838

39-
- The `"Default"`, `"Microsoft"`, and `"Microsoft.Hosting.Lifetime"` categories are specified.
39+
- The `"Default"`, `"Microsoft"`, and `"Microsoft.Hosting.Lifetime"` log level categories are specified.
40+
- The `"Default"` value is applied to all categories that aren't otherwise specified, effectively making all default values for all categories `"Information"`. You can override this behavior by specifying a value for a category.
4041
- The `"Microsoft"` category applies to all categories that start with `"Microsoft"`.
41-
- The `"Microsoft"` category logs at log level `Warning` and higher.
42-
- The `"Microsoft.Hosting.Lifetime"` category is more specific than the `"Microsoft"` category, so the `"Microsoft.Hosting.Lifetime"` category logs at log level "Information" and higher.
42+
- The `"Microsoft"` category logs at a log level of `Warning` and higher.
43+
- The `"Microsoft.Hosting.Lifetime"` category is more specific than the `"Microsoft"` category, so the `"Microsoft.Hosting.Lifetime"` category logs at log level `"Information"` and higher.
4344
- A specific log provider is not specified, so `LogLevel` applies to all the enabled logging providers except for the [Windows EventLog](logging-providers.md#windows-eventlog).
4445

4546
The `Logging` property can have <xref:Microsoft.Extensions.Logging.LogLevel> and log provider properties. The `LogLevel` specifies the minimum [level](#log-level) to log for selected categories. In the preceding JSON, `Information` and `Warning` log levels are specified. `LogLevel` indicates the severity of the log and ranges from 0 to 6:

0 commit comments

Comments
 (0)