Skip to content

Commit 9563a05

Browse files
Update index.md (dotnet#16173)
* Update index.md * Apply suggestions from code review Co-Authored-By: Luke Latham <[email protected]> * Update aspnetcore/fundamentals/logging/index.md Co-Authored-By: Luke Latham <[email protected]> * Update aspnetcore/fundamentals/logging/index.md Co-Authored-By: Luke Latham <[email protected]>
1 parent 4e94ec3 commit 9563a05

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aspnetcore/fundamentals/logging/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,16 @@ logging.AddEventLog();
10511051
* `SourceName` &ndash; ".NET Runtime"
10521052
* `MachineName` &ndash; local machine
10531053

1054+
Events are logged for [Warning level and higher](#log-level). To log events lower than `Warning`, explicitly set the log level. For example, add the following to the *appsettings.json* file:
1055+
1056+
```json
1057+
"EventLog": {
1058+
"LogLevel": {
1059+
"Default": "Information"
1060+
}
1061+
}
1062+
```
1063+
10541064
### TraceSource provider
10551065

10561066
The [Microsoft.Extensions.Logging.TraceSource](https://www.nuget.org/packages/Microsoft.Extensions.Logging.TraceSource) provider package uses the <xref:System.Diagnostics.TraceSource> libraries and providers.

0 commit comments

Comments
 (0)