mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Changing the default logging level to info
This commit is contained in:
parent
d9da0a6e8f
commit
2959d5f280
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user