Logging overhaul!

This change brings about a few changes:
1) A new LogLevel called "User" that is used for non-verbose, non-error output
2) Only User and Error are output to console now, not all of them
3) All programs have log to file enabled by default and all flags for enabling logging have been removed
4) Some former Verbose statements have been converted over to User because of the shift in usage.
This commit is contained in:
Matt Nadareski
2016-05-10 15:41:33 -07:00
parent 37253b8c91
commit 1800ac6750
12 changed files with 80 additions and 85 deletions

View File

@@ -100,7 +100,7 @@ namespace SabreTools
name += " (merged)";
// For good measure, get all sources
Dictionary<int, string> sources = new Dictionary<int, string>();
Dictionary<int, string> sources = new Dictionary<int, string>();C:\Users\Matt\GitHub\DATabase\DATabaseTwo\Generate.cs
sources.Add(0, "Default");
string squery = "SELECT id, name FROM source";
@@ -171,7 +171,7 @@ namespace SabreTools
}
// Now process all of the roms
_logger.Log("Cleaning rom data");
_logger.User("Cleaning rom data");
List<string> keys = roms.Keys.ToList();
foreach (string key in keys)
{