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); }
public void LogTrace(string message, params object[] args) { ColoredConsole.Log(ConsoleColor.Gray, message, args); }