public void Report(ResCheckResult result) { if (result.hasError) { Debug.LogError(string.Format("PrefabsMissCheckerErrorOut: {0} error nums: {1}", result.checkName, result.errorMessages.Count.ToString())); result.errorMessages.ForEach(s => Debug.LogError(string.Format("PrefabsMissCheckerErrorOut:{0}", s))); } else { EB.Debug.Log(string.Format("{0} passed", result.checkName)); } }
public void Report(ResCheckResult result) { if (result.hasError) { Debug.LogError(string.Format("ErrorOut: {0} error nums: {1}", result.checkName, result.errorMessages.Count.ToString())); string contents = string.Empty; result.errorMessages.ForEach(s => contents += (s + "\r\n")); File.WriteAllText(Application.dataPath + "/output.txt", contents, System.Text.Encoding.Unicode); } else { EB.Debug.Log(string.Format("{0} passed", result.checkName)); } }