Review https://github.com/JustArchi/ArchiSteamFarm/wiki/Logging for examples once I'm done updating the wiki
This commit is contained in:
JustArchi
2017-01-31 01:10:01 +01:00
parent e4f4859eb4
commit fc4574d143
23 changed files with 305 additions and 203 deletions

View File

@@ -38,11 +38,11 @@ namespace ArchiSteamFarm {
internal sealed class DebugListener : IDebugListener {
public void WriteLine(string category, string msg) {
if (string.IsNullOrEmpty(category) && string.IsNullOrEmpty(msg)) {
Program.ArchiLogger.LogNullError(nameof(category) + " && " + nameof(msg));
ASF.ArchiLogger.LogNullError(nameof(category) + " && " + nameof(msg));
return;
}
Program.ArchiLogger.LogGenericDebug(category + " | " + msg);
ASF.ArchiLogger.LogGenericDebug(category + " | " + msg);
}
}
}