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

@@ -82,11 +82,11 @@ namespace RombaSharp.Features
count++;
}
Globals.Logger.User($"For hash '{input}' there were {count} matches in the database");
logger.User($"For hash '{input}' there were {count} matches in the database");
}
else
{
Globals.Logger.User($"Hash '{input}' had no matches in the database");
logger.User($"Hash '{input}' had no matches in the database");
}
sldr.Dispose();
@@ -105,11 +105,11 @@ namespace RombaSharp.Features
count++;
}
Globals.Logger.User($"For hash '{input}' there were {count} matches in the database");
logger.User($"For hash '{input}' there were {count} matches in the database");
}
else
{
Globals.Logger.User($"Hash '{input}' had no matches in the database");
logger.User($"Hash '{input}' had no matches in the database");
}
sldr.Dispose();
@@ -128,11 +128,11 @@ namespace RombaSharp.Features
count++;
}
Globals.Logger.User($"For hash '{input}' there were {count} matches in the database");
logger.User($"For hash '{input}' there were {count} matches in the database");
}
else
{
Globals.Logger.User($"Hash '{input}' had no matches in the database");
logger.User($"Hash '{input}' had no matches in the database");
}
sldr.Dispose();