Rename Logging class to Logger

This commit is contained in:
Matt Nadareski
2016-03-28 18:40:35 -07:00
parent 0436671646
commit 9832c64f45
5 changed files with 10 additions and 9 deletions

View File

@@ -22,9 +22,9 @@ namespace WoD
// Private required variables
private Dictionary<int, string> _headers;
private Logging _logger;
private Logger _logger;
public Generate(string systems, string sources, string connectionString, Logging logger, bool norename = false, bool old = false)
public Generate(string systems, string sources, string connectionString, Logger logger, bool norename = false, bool old = false)
{
_systems = systems;
_sources = sources;

View File

@@ -13,7 +13,7 @@ namespace WoD
// Private instance variables
private string _filepath;
private string _connectionString;
private Logging _logger;
private Logger _logger;
// Regex File Name Patterns
private static string _defaultPattern = @"^(.+?) - (.+?) \((.*) (.*)\)\.dat$";
@@ -50,7 +50,7 @@ namespace WoD
}
// Constructor
public Import(string filepath, string connectionString, Logging logger)
public Import(string filepath, string connectionString, Logger logger)
{
if (File.Exists(filepath))
{

View File

@@ -9,7 +9,7 @@ namespace WoD
{
class DATabase
{
private static Logging logger;
private static Logger logger;
private static string _dbName = "DATabase.sqlite";
private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;";
private static string _version = "0.1.1.0";
@@ -27,7 +27,7 @@ namespace WoD
// Perform initial setup and verification
DBTools.EnsureDatabase(_dbName, _connectionString);
Remapping.CreateRemappings();
logger = new Logging(false, "database.log");
logger = new Logger(false, "database.log");
logger.Start();
Console.Clear();
Console.Title = "DATabase " + _version;
@@ -319,6 +319,7 @@ Make a selection:
return;
}
/// TODO: Make this safe for auto-generating multiple files (such as auto-generate)
private static void InitGenerate(string systems, string sources, bool norename, bool old)
{
Generate gen = new Generate(systems, sources, _connectionString, logger, norename, old);

View File

@@ -71,7 +71,7 @@
<Compile Include="Core\Import.cs" />
<Compile Include="Helper\DBTools.cs" />
<Compile Include="DATabase.cs" />
<Compile Include="Helper\Logging.cs" />
<Compile Include="Helper\Logger.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Helper\Remapping.cs" />
<Compile Include="Helper\Style.cs" />

View File

@@ -3,7 +3,7 @@ using System.IO;
namespace WoD.Helper
{
public class Logging
public class Logger
{
// Private instance variables
private bool _tofile;
@@ -28,7 +28,7 @@ namespace WoD.Helper
}
}
public Logging(bool tofile, string filename = "")
public Logger(bool tofile, string filename = "")
{
_tofile = tofile;
_filename = filename;