public static void LogChange(string text, string path, string whatChanged = null) { if (path != null) { ChangedDirs.Add(Path.GetDirectoryName(path).WithSlash()); } var msg = text + path + whatChanged; ConsoleUtil.WriteParagraphs(msg.Color(ConsoleColor.Yellow)); ChangeLog?.WriteLine(msg); ChangeLog?.Flush(); }
public static void LogAll(string text) { ConsoleUtil.WriteParagraphs(text.Color(ConsoleColor.Green)); ActionLog?.WriteLine(text); ActionLog?.Flush(); ChangeLog?.WriteLine(text); ChangeLog?.Flush(); ErrorLog?.WriteLine(text); ErrorLog?.Flush(); CriticalErrorLog?.WriteLine(text); CriticalErrorLog?.Flush(); DebugLog?.WriteLine(text); DebugLog?.Flush(); }