Instance logging with backing static class instead of Global

This commit is contained in:
Matt Nadareski
2020-10-07 15:42:30 -07:00
parent 348a2a2bcb
commit b7db9f7f14
69 changed files with 1034 additions and 834 deletions

View File

@@ -12,12 +12,6 @@ namespace SabreTools.Library.Data
/// </summary>
public class Globals
{
#region Private implementations
private static Logger _logger = null;
#endregion
#region Public accessors
/// <summary>
@@ -35,21 +29,6 @@ namespace SabreTools.Library.Data
/// </summary>
public static string ExeName => new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).LocalPath;
/// <summary>
/// Logging object for writing to file and console
/// </summary>
public static Logger Logger
{
get
{
if (_logger == null)
_logger = new Logger();
return _logger;
}
set { _logger = value; }
}
/// <summary>
/// Maximum threads to use during parallel operations
/// </summary>