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;
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user