From 2959d5f2805bf52b8215ce059ff67e336fee53eb Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Sat, 20 Feb 2021 21:04:58 +1300 Subject: [PATCH] Changing the default logging level to info --- DisplayMagician/Program.cs | 3 +-- DisplayMagician/ProgramSettings.cs | 4 ++-- DisplayMagician/UIForms/SettingsForm.cs | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/DisplayMagician/Program.cs b/DisplayMagician/Program.cs index 030427e..6c61f96 100644 --- a/DisplayMagician/Program.cs +++ b/DisplayMagician/Program.cs @@ -111,10 +111,9 @@ namespace DisplayMagician { logLevel = NLog.LogLevel.Debug; break; default: - logLevel = NLog.LogLevel.Warn; + logLevel = NLog.LogLevel.Info; break; } - //config.AddRule(NLog.LogLevel.Info, NLog.LogLevel.Fatal, logconsole); config.AddRule(logLevel, NLog.LogLevel.Fatal, logfile); // Apply config diff --git a/DisplayMagician/ProgramSettings.cs b/DisplayMagician/ProgramSettings.cs index 4c4ba8f..bb77713 100644 --- a/DisplayMagician/ProgramSettings.cs +++ b/DisplayMagician/ProgramSettings.cs @@ -22,7 +22,7 @@ namespace DisplayMagician #region Instance Variables private bool _startOnBootUp = false; private bool _minimiseOnStart = false; - private string _logLevel = NLog.LogLevel.Warn.ToString(); + private string _logLevel = NLog.LogLevel.Info.ToString(); #endregion #region Class Properties @@ -88,7 +88,7 @@ namespace DisplayMagician _logLevel = NLog.LogLevel.Fatal.ToString(); break; default: - _logLevel = NLog.LogLevel.Warn.ToString(); + _logLevel = NLog.LogLevel.Info.ToString(); break; } diff --git a/DisplayMagician/UIForms/SettingsForm.cs b/DisplayMagician/UIForms/SettingsForm.cs index 1c01da2..d4fc9b6 100644 --- a/DisplayMagician/UIForms/SettingsForm.cs +++ b/DisplayMagician/UIForms/SettingsForm.cs @@ -25,8 +25,8 @@ namespace DisplayMagician.UIForms // Populate the LogLevel dictionary logLevelText.Add("Trace", "Full Application Trace (very large)"); logLevelText.Add("Debug", "Detailed Debug messages (large)"); - logLevelText.Add("Info", "Information, Warning and Error messages"); - logLevelText.Add("Warn", "Warning and Error messages only (Default)"); + logLevelText.Add("Info", "Information, Warning and Error messages (Default)"); + logLevelText.Add("Warn", "Warning and Error messages only"); logLevelText.Add("Error", "Error messages only"); logLevelText.Add("Fatal", "Fatal Error messages only");