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.
This commit is contained in:
Terry MacDonald 2021-10-09 19:45:53 +13:00
parent c5b06988dd
commit 6445140924
2 changed files with 9 additions and 5 deletions

View File

@ -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")

View File

@ -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)]