Use LogSource Enum for logger and improve logging messages
This commit is contained in:
parent
0fe273151c
commit
2b85caeb29
16 changed files with 122 additions and 95 deletions
|
@ -17,11 +17,11 @@ namespace Geekbot.net.Lib.Media
|
|||
var rawFortunes = File.ReadAllText(path);
|
||||
_fortuneArray = rawFortunes.Split("%");
|
||||
_totalFortunes = _fortuneArray.Length;
|
||||
logger.Trace("Geekbot", $"Loaded {_totalFortunes} Fortunes");
|
||||
logger.Trace(LogSource.Geekbot, $"Loaded {_totalFortunes} Fortunes");
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.Information("Geekbot", $"Fortunes File not found at {path}");
|
||||
logger.Information(LogSource.Geekbot, $"Fortunes File not found at {path}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue