From 309f470b77ed08787b5d0af7536480eeac4de638 Mon Sep 17 00:00:00 2001 From: Luke Latham Date: Wed, 16 Dec 2020 12:54:40 -0600 Subject: [PATCH] Blazor WebAssemblyConsoleLogger internal NOTE (#20960) --- aspnetcore/blazor/fundamentals/logging.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aspnetcore/blazor/fundamentals/logging.md b/aspnetcore/blazor/fundamentals/logging.md index fc04607aec..a279f1f47a 100644 --- a/aspnetcore/blazor/fundamentals/logging.md +++ b/aspnetcore/blazor/fundamentals/logging.md @@ -5,7 +5,7 @@ description: Learn about logging in Blazor apps, including log level configurati monikerRange: '>= aspnetcore-3.1' ms.author: riande ms.custom: mvc -ms.date: 12/11/2020 +ms.date: 12/16/2020 no-loc: [appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR] uid: blazor/fundamentals/logging zone_pivot_groups: blazor-hosting-models @@ -39,6 +39,9 @@ Logging configuration can be loaded from app settings files. For more informatio Inject an to add a `WebAssemblyConsoleLogger` to the logging providers passed to . Unlike a traditional , `WebAssemblyConsoleLogger` is a wrapper around browser-specific logging APIs (for example, `console.log`). Use of `WebAssemblyConsoleLogger` makes logging possible within Mono inside a browser context. +> [!NOTE] +> `WebAssemblyConsoleLogger` is [internal](/dotnet/csharp/language-reference/keywords/internal) and not available for direct use in developer code. + Add the namespace for and inject an into the component: ```csharp