public void Error(string error) { ColorfulLogs tmp = new ColorfulLogs(); tmp.color = Brushes.Red; tmp.text = "[ERROR] " + error + "\n"; Logs.Add(tmp); }
public void Warning(string warning) { ColorfulLogs tmp = new ColorfulLogs(); tmp.color = Brushes.Orange; tmp.text = "[WARNING] " + warning + "\n"; Logs.Add(tmp); }
public void Log(string log) { ColorfulLogs tmp = new ColorfulLogs(); tmp.color = Brushes.Black; tmp.text = log + "\n"; try { Logs.Add(tmp); } catch { } }