Replace all ocurences of the Serilog with GeekbotLogger

This commit is contained in:
runebaas 2018-01-20 01:38:49 +01:00
parent 82b2b4c815
commit 07ca1e1548
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
13 changed files with 105 additions and 118 deletions

View file

@ -10,7 +10,7 @@ namespace Geekbot.net.Lib.Media
private readonly Random rnd;
private readonly int totalFortunes;
public FortunesProvider(Random rnd, ILogger logger)
public FortunesProvider(Random rnd, IGeekbotLogger logger)
{
var path = Path.GetFullPath("./Storage/fortunes");
if (File.Exists(path))
@ -19,12 +19,11 @@ namespace Geekbot.net.Lib.Media
fortuneArray = rawFortunes.Split("%");
totalFortunes = fortuneArray.Length;
this.rnd = rnd;
logger.Verbose($"[Geekbot] [Fortunes] Loaded {totalFortunes} Fortunes");
logger.Debug("Geekbot", "Loaded {totalFortunes} Fortunes");
}
else
{
logger.Error("Fortunes File not found");
logger.Error($"Path should be {path}");
logger.Information("Geekbot", $"Fortunes File not found at {path}");
}
}