Пример #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 WriteLine(string value) => Exconsole.WriteLine(value);