From 1a56ac5d78f195ca5790ea037ab2f7ffc12ab702 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 21 Jun 2022 20:11:55 +0300 Subject: [PATCH] Fix ASP.NET/DI logging note (#3902) --- .../core/logging-events-diagnostics/extensions-logging.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity-framework/core/logging-events-diagnostics/extensions-logging.md b/entity-framework/core/logging-events-diagnostics/extensions-logging.md index b3dd77eceb..c38aafa18b 100644 --- a/entity-framework/core/logging-events-diagnostics/extensions-logging.md +++ b/entity-framework/core/logging-events-diagnostics/extensions-logging.md @@ -14,11 +14,11 @@ Entity Framework Core (EF Core) fully integrates with `Microsoft.Extensions.Logg ## ASP.NET Core applications -`Microsoft.Extensions.Logging` is [used by default in ASP.NET Core applications](/aspnet/core/fundamentals/logging). Calling or . +`Microsoft.Extensions.Logging` is [used by default in ASP.NET Core applications](/aspnet/core/fundamentals/logging). Calling or makes EF Core automatically use the logging setup configured via the regular ASP.NET mechanism. ## Other application types -Other application types can use the [GenericHost](/dotnet/core/extensions/generic-host) to get the same dependency injection patterns as are used in ASP.NET Core. AddDbContext or AddDbContextPool can then be used just like in ASP.NET Core applications. +Other application types can use the [GenericHost](/dotnet/core/extensions/generic-host) to get the same dependency injection patterns as are used in ASP.NET Core. or can then be used just like in ASP.NET Core applications. `Microsoft.Extensions.Logging` can also be used for applications that don't use dependency injection, although [simple logging](xref:core/logging-events-diagnostics/simple-logging) can be easier to set up.