Set the default to log TRACE level log messages

This is just while we're doing in-depth testing.
This commit is contained in:
Terry MacDonald 2021-09-22 21:17:21 +12:00
parent 5aa100802b
commit 63479cae82

View File

@ -91,7 +91,7 @@ namespace DisplayMagician {
// Rules for mapping loggers to targets
NLog.LogLevel logLevel = null;
switch (AppProgramSettings.LogLevel)
/*switch (AppProgramSettings.LogLevel)
{
case "Trace":
logLevel = NLog.LogLevel.Trace;
@ -111,8 +111,13 @@ namespace DisplayMagician {
default:
logLevel = NLog.LogLevel.Info;
break;
}
}*/
// TODO: **************************************** CHANGE THIS *******************************************
// Force Logging to TRACE during debg
logLevel = NLog.LogLevel.Trace;
// Create the log file target
var logfile = new NLog.Targets.FileTarget("logfile")
{