From 9654d1d1412ed3b72aa5cc77d29bc02c9c9f1ec9 Mon Sep 17 00:00:00 2001 From: Maksym Koshovyi Date: Sat, 2 Apr 2022 00:10:51 +0300 Subject: [PATCH] DisallowNull --- .../Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs b/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs index 5c29492da1894..02afa566765f7 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Runtime.Versioning; using Microsoft.Extensions.Logging.Abstractions; @@ -20,9 +21,11 @@ internal ConsoleLogger(string name!!, ConsoleLoggerProcessor loggerProcessor) _queueProcessor = loggerProcessor; } + [DisallowNull] internal ConsoleFormatter? Formatter { get; set; } internal IExternalScopeProvider? ScopeProvider { get; set; } + [DisallowNull] internal ConsoleLoggerOptions? Options { get; set; } [ThreadStatic]