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

@@ -45,7 +45,7 @@ namespace SabreTools.DatFiles.Formats
catch (Exception ex) when (!throwOnError)
{
string message = $"'{filename}' - An error occurred during parsing";
logger.Error(ex, message);
_logger.Error(ex, message);
}
}
@@ -174,24 +174,24 @@ namespace SabreTools.DatFiles.Formats
{
try
{
logger.User($"Writing to '{outfile}'...");
_logger.User($"Writing to '{outfile}'...");
// Serialize the input file
var metadata = ConvertMetadata(ignoreblanks);
var metadataFile = new Serialization.CrossModel.ClrMamePro().Deserialize(metadata);
if (!Serialization.Serializers.ClrMamePro.SerializeFile(metadataFile, outfile, _quotes))
{
logger.Warning($"File '{outfile}' could not be written! See the log for more details.");
_logger.Warning($"File '{outfile}' could not be written! See the log for more details.");
return false;
}
}
catch (Exception ex) when (!throwOnError)
{
logger.Error(ex);
_logger.Error(ex);
return false;
}
logger.User($"'{outfile}' written!{Environment.NewLine}");
_logger.User($"'{outfile}' written!{Environment.NewLine}");
return true;
}
}