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