From 6445140924d7c0538279f0d7b5e339db0c9ff07c Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Sat, 9 Oct 2021 19:45:53 +1300 Subject: [PATCH] Forced TRACE level logging while dev happening I've set this as it was too onerous continuously teaching people how to turn on TRACE logging. While there are a large number of big changes taking place with DisplayMagician, this will minimise the backwards and forwards it takes to get the right level of log information for me to troubleshoot each issue. --- DisplayMagician/Program.cs | 10 +++++++--- DisplayMagician/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/DisplayMagician/Program.cs b/DisplayMagician/Program.cs index adaa703..53496f2 100644 --- a/DisplayMagician/Program.cs +++ b/DisplayMagician/Program.cs @@ -105,7 +105,7 @@ namespace DisplayMagician { AppProgramSettings = ProgramSettings.LoadSettings(); // Rules for mapping loggers to targets - NLog.LogLevel logLevel = null; + /*NLog.LogLevel logLevel = null; switch (AppProgramSettings.LogLevel) { case "Trace": @@ -126,8 +126,12 @@ namespace DisplayMagician { default: logLevel = NLog.LogLevel.Info; break; - } - + }*/ + // TODO - remove this temporary action to force Trace level logging + // I've set this as it was too onerous continuously teaching people how to turn on TRACE logging + // While there are a large number of big changes taking place with DisplayMagician, this will minimise + // the backwards and forwards it takes to get the right level of log information for me to troubleshoot. + NLog.LogLevel logLevel = NLog.LogLevel.Trace; // Create the log file target var logfile = new NLog.Targets.FileTarget("logfile") diff --git a/DisplayMagician/Properties/AssemblyInfo.cs b/DisplayMagician/Properties/AssemblyInfo.cs index 199f48f..8435ac7 100644 --- a/DisplayMagician/Properties/AssemblyInfo.cs +++ b/DisplayMagician/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ using System.Resources; [assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")] // Version information -[assembly: AssemblyVersion("2.0.1.89")] -[assembly: AssemblyFileVersion("2.0.1.89")] +[assembly: AssemblyVersion("2.0.1.90")] +[assembly: AssemblyFileVersion("2.0.1.90")] [assembly: NeutralResourcesLanguageAttribute( "en" )] [assembly: CLSCompliant(true)]