Allow overriding default ASF NLog settings, #279

This commit is contained in:
JustArchi
2016-07-04 21:40:09 +02:00
parent 4b0e65b76b
commit 79b1019ec3

View File

@@ -37,6 +37,11 @@ namespace ArchiSteamFarm {
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
internal static void Init() {
if (LogManager.Configuration != null) {
// User provided custom NLog config, or we have it set already, so don't override it
return;
}
LoggingConfiguration config = new LoggingConfiguration();
if (Program.GlobalConfig.LogToFile) {