Improve Logger<T> debugging (#88959)
authorJames Newton-King <james@newtonking.com>
Sun, 16 Jul 2023 18:35:48 +0000 (02:35 +0800)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 18:35:48 +0000 (11:35 -0700)
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/LoggerT.cs

index b9dbefd..fed0e5c 100644 (file)
@@ -15,6 +15,7 @@ namespace Microsoft.Extensions.Logging
     [DebuggerDisplay("{DebuggerToString(),nq}")]
     public class Logger<T> : ILogger<T>
     {
+        [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
         private readonly ILogger _logger;
 
         /// <summary>