Changing the default logging level to info

This commit is contained in:
Terry MacDonald 2021-02-20 21:04:58 +13:00
parent d9da0a6e8f
commit 2959d5f280
3 changed files with 5 additions and 6 deletions

View File

@ -111,10 +111,9 @@ namespace DisplayMagician {
logLevel = NLog.LogLevel.Debug; logLevel = NLog.LogLevel.Debug;
break; break;
default: default:
logLevel = NLog.LogLevel.Warn; logLevel = NLog.LogLevel.Info;
break; break;
} }
//config.AddRule(NLog.LogLevel.Info, NLog.LogLevel.Fatal, logconsole);
config.AddRule(logLevel, NLog.LogLevel.Fatal, logfile); config.AddRule(logLevel, NLog.LogLevel.Fatal, logfile);
// Apply config // Apply config

View File

@ -22,7 +22,7 @@ namespace DisplayMagician
#region Instance Variables #region Instance Variables
private bool _startOnBootUp = false; private bool _startOnBootUp = false;
private bool _minimiseOnStart = false; private bool _minimiseOnStart = false;
private string _logLevel = NLog.LogLevel.Warn.ToString(); private string _logLevel = NLog.LogLevel.Info.ToString();
#endregion #endregion
#region Class Properties #region Class Properties
@ -88,7 +88,7 @@ namespace DisplayMagician
_logLevel = NLog.LogLevel.Fatal.ToString(); _logLevel = NLog.LogLevel.Fatal.ToString();
break; break;
default: default:
_logLevel = NLog.LogLevel.Warn.ToString(); _logLevel = NLog.LogLevel.Info.ToString();
break; break;
} }

View File

@ -25,8 +25,8 @@ namespace DisplayMagician.UIForms
// Populate the LogLevel dictionary // Populate the LogLevel dictionary
logLevelText.Add("Trace", "Full Application Trace (very large)"); logLevelText.Add("Trace", "Full Application Trace (very large)");
logLevelText.Add("Debug", "Detailed Debug messages (large)"); logLevelText.Add("Debug", "Detailed Debug messages (large)");
logLevelText.Add("Info", "Information, Warning and Error messages"); logLevelText.Add("Info", "Information, Warning and Error messages (Default)");
logLevelText.Add("Warn", "Warning and Error messages only (Default)"); logLevelText.Add("Warn", "Warning and Error messages only");
logLevelText.Add("Error", "Error messages only"); logLevelText.Add("Error", "Error messages only");
logLevelText.Add("Fatal", "Fatal Error messages only"); logLevelText.Add("Fatal", "Fatal Error messages only");