예제 #1
0
        public void Error(string error)
        {
            ColorfulLogs tmp = new ColorfulLogs();

            tmp.color = Brushes.Red;
            tmp.text  = "[ERROR] " + error + "\n";
            Logs.Add(tmp);
        }
예제 #2
0
        public void Warning(string warning)
        {
            ColorfulLogs tmp = new ColorfulLogs();

            tmp.color = Brushes.Orange;
            tmp.text  = "[WARNING] " + warning + "\n";
            Logs.Add(tmp);
        }
예제 #3
0
        public void Log(string log)
        {
            ColorfulLogs tmp = new ColorfulLogs();

            tmp.color = Brushes.Black;
            tmp.text  = log + "\n";
            try
            {
                Logs.Add(tmp);
            }
            catch
            {
            }
        }