/// <summary> /// Log the conversion process. /// </summary> /// <param name="success">Result of the conversion process.</param> /// <param name="exceptionMessage">Error Message if the process fail.</param> private void Logger(string success, string exceptionMessage) { Log log = new Log(); log.Success = success; if (!String.IsNullOrEmpty(exceptionMessage)) { log.Error = exceptionMessage; } XmlDocument xmlLog = new XmlDocument(); xmlLog.LoadXml(log.SerializeToXml()); xmlLog.Save(String.Concat(this.ChmOutput.ItemSpec, "\\CompileLog.xml")); }