From db3d67960083c691e13f6dc6a5cfb8c740eaade9 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:06:31 -1000 Subject: [PATCH] Update index.md (#33186) * Update index.md * Update aspnetcore/fundamentals/logging/index.md * Update index.md * Apply suggestions from code review Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> --------- Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> --- aspnetcore/fundamentals/logging/index.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aspnetcore/fundamentals/logging/index.md b/aspnetcore/fundamentals/logging/index.md index 849bcfe1f6..55f57ade0e 100644 --- a/aspnetcore/fundamentals/logging/index.md +++ b/aspnetcore/fundamentals/logging/index.md @@ -218,7 +218,7 @@ Logs created with the [default logging providers](#lp) are displayed: * In the ASP.NET Core Web Server window. * In the console window when the app is run with `dotnet run`. -Logs that begin with "Microsoft" categories are from ASP.NET Core framework code. ASP.NET Core and application code use the same logging API and providers. +Logs that begin with "Microsoft" categories are from .NET. .NET and application code use the same [logging API and providers](/dotnet/core/extensions/logging). @@ -408,9 +408,9 @@ The preceding code displays console logs when the category contains `Controller` Generally, log levels should be specified in configuration and not code. -## ASP.NET Core and EF Core categories +## ASP.NET Core categories -The following table contains some categories used by ASP.NET Core and Entity Framework Core, with notes about the logs: +The following table contains some categories used by ASP.NET Core. | Category | Notes | | ------------------------------------- | ----- | @@ -422,7 +422,7 @@ The following table contains some categories used by ASP.NET Core and Entity Fra | `Microsoft.AspNetCore.Routing` | Route matching information. | | `Microsoft.AspNetCore.Server` | Connection start, stop, and keep alive responses. HTTPS certificate information. | | `Microsoft.AspNetCore.StaticFiles` | Files served. | -| `Microsoft.EntityFrameworkCore` | General Entity Framework Core diagnostics. Database activity and configuration, change detection, migrations. | + To view more categories in the console window, set **`appsettings.Development.json`** to the following: @@ -430,6 +430,8 @@ To view more categories in the console window, set **`appsettings.Development.js +For a list of Entity Framework categories, see [EF Message categories](/ef/core/logging-events-diagnostics/simple-logging#message-categories). + ## Log scopes