mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Instance logging with backing static class instead of Global
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user