Skip to content

Commit

Permalink
Also use logFactory for ThrowConfigExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Mar 20, 2016
1 parent 1471656 commit ee15766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NLog/Config/XmlLoggingConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private void ParseNLogElement(NLogXmlElement nlogElement, string filePath, bool
this.fileMustAutoReloadLookup[GetFileLookupKey(filePath)] = autoReload;

logFactory.ThrowExceptions = nlogElement.GetOptionalBooleanAttribute("throwExceptions", logFactory.ThrowExceptions);
LogManager.ThrowConfigExceptions = nlogElement.GetOptionalBooleanAttribute("throwConfigExceptions", LogManager.ThrowConfigExceptions);
logFactory.ThrowConfigExceptions = nlogElement.GetOptionalBooleanAttribute("throwConfigExceptions", logFactory.ThrowConfigExceptions);
InternalLogger.LogToConsole = nlogElement.GetOptionalBooleanAttribute("internalLogToConsole", InternalLogger.LogToConsole);
InternalLogger.LogToConsoleError = nlogElement.GetOptionalBooleanAttribute("internalLogToConsoleError", InternalLogger.LogToConsoleError);
InternalLogger.LogFile = nlogElement.GetOptionalAttribute("internalLogFile", InternalLogger.LogFile);
Expand Down Expand Up @@ -1190,4 +1190,4 @@ private string ExpandSimpleVariables(string input)
return output;
}
}
}
}

0 comments on commit ee15766

Please sign in to comment.