Beispiel #1
0
        public static void Error(string message, string callerInfo = null)
        {
            var sf     = new StackFrame(1, true);
            var caller = sf.GetMethod();

            if (callerInfo == null)
            {
                callerInfo = getCallerInfo();
            }

            var log = $"[{DateTime.Now:yyyy/MM/dd HH:mm:ss.fff}][Error]({callerInfo})\n{message}";

            Exconsole.WriteLine("@r" + message + "@!");
            // Exconsole.WriteLine("@m" + log + "@!");
        }
Beispiel #2
0
 public static void WriteHighlight(string value) => Exconsole.Write("@c" + value + "@!");
Beispiel #3
0
 public static void WriteLine(string value) => Exconsole.WriteLine(value);