예제 #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 + "@!");
        }
예제 #2
0
 public static void WriteHighlight(string value) => Exconsole.Write("@c" + value + "@!");
예제 #3
0
 public static void WriteLine(string value) => Exconsole.WriteLine(value);