예제 #1
0
        public void LogError(string message, Exception exception)
        {
            var exceptionBuilder = new StringBuilder()
                                   .AppendLine(message)
                                   .AppendLine("Exception Type: " + exception.GetType())
                                   .AppendLine("Exception Message: " + exception.Message)
                                   .AppendLine("Stack Trace: " + exception.StackTrace);

            ColoredConsole.Log(ConsoleColor.Red, exceptionBuilder);
        }
예제 #2
0
 public void LogTrace(string message, params object[] args)
 {
     ColoredConsole.Log(ConsoleColor.Gray, message, args);
 }