[Logger] Have logging automatically start on Logger create

This commit is contained in:
Matt Nadareski
2016-09-22 16:43:38 -07:00
parent 64270f5727
commit c17744984c
7 changed files with 2 additions and 24 deletions

View File

@@ -23,24 +23,6 @@ namespace SabreTools.Helper
// Private required variables
private string _basepath = "Logs" + Path.DirectorySeparatorChar;
// Public wrappers
public bool ToFile
{
get { return _tofile; }
set
{
if (!value)
{
Close();
}
_tofile = value;
if (_tofile)
{
Start();
}
}
}
/// <summary>
/// Initialize a Logger object with the given information
/// </summary>
@@ -55,6 +37,8 @@ namespace SabreTools.Helper
{
Directory.CreateDirectory(_basepath);
}
Start();
}
/// <summary>