private void SaveLog() { if (string.IsNullOrEmpty(_logFilePath)) { return; } _log.BuildDate = DateTime.Now; _log.BuildStatus = Status; _log.Error = (Exception != null) ? new BuildErrorLog(Exception) : null; _log.SaveFile(_logFilePath); }