Make Logger naming consistent

This commit is contained in:
Matt Nadareski
2025-01-08 16:59:44 -05:00
parent 9241011867
commit d67327231b
39 changed files with 186 additions and 186 deletions

View File

@@ -15,7 +15,7 @@ namespace SabreTools.Reports
/// <summary>
/// Logging object
/// </summary>
protected readonly Logger logger = new();
protected readonly Logger _logger = new();
#endregion

View File

@@ -39,7 +39,7 @@ namespace SabreTools.Reports.Formats
FileStream fs = File.Create(outfile ?? string.Empty);
if (fs == null)
{
logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
_logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
return false;
}
@@ -88,7 +88,7 @@ namespace SabreTools.Reports.Formats
}
catch (Exception ex) when (!throwOnError)
{
logger.Error(ex);
_logger.Error(ex);
return false;
}
finally

View File

@@ -38,7 +38,7 @@ namespace SabreTools.Reports.Formats
FileStream fs = File.Create(outfile ?? string.Empty);
if (fs == null)
{
logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
_logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
return false;
}
@@ -79,7 +79,7 @@ namespace SabreTools.Reports.Formats
}
catch (Exception ex) when (!throwOnError)
{
logger.Error(ex);
_logger.Error(ex);
return false;
}
finally

View File

@@ -35,7 +35,7 @@ namespace SabreTools.Reports.Formats
Stream fs = _writeToConsole ? Console.OpenStandardOutput() : File.Create(outfile ?? string.Empty);
if (fs == null)
{
logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
_logger.Warning($"File '{outfile}' could not be created for writing! Please check to see if the file is writable");
return false;
}
@@ -69,7 +69,7 @@ namespace SabreTools.Reports.Formats
}
catch (Exception ex) when (!throwOnError)
{
logger.Error(ex);
_logger.Error(ex);
return false;
}
finally