From a3698092927587d348e9147726d05cbbf17b9133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85slund?= Date: Wed, 9 Oct 2019 10:45:30 +0200 Subject: [PATCH] Finalized implementation for merge request 42 Able to set the "new" useColor property via NameValueCollection/web.config --- .../Logging/Simple/ConsoleOutLoggerFactoryAdapter.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Common.Logging/Logging/Simple/ConsoleOutLoggerFactoryAdapter.cs b/src/Common.Logging/Logging/Simple/ConsoleOutLoggerFactoryAdapter.cs index be3b873..facf545 100644 --- a/src/Common.Logging/Logging/Simple/ConsoleOutLoggerFactoryAdapter.cs +++ b/src/Common.Logging/Logging/Simple/ConsoleOutLoggerFactoryAdapter.cs @@ -85,8 +85,10 @@ public ConsoleOutLoggerFactoryAdapter() /// The name value collection, typically specified by the user in /// a configuration section named common/logging. public ConsoleOutLoggerFactoryAdapter(NameValueCollection properties) - : base(properties) - { } + : base(properties) + { + this.useColor = ArgUtils.TryParse(false, ArgUtils.GetValue(properties, "useColor")); + } #if !SILVERLIGHT ///