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 WriteLine(string value) => Exconsole.WriteLine(value);