public Error ( string message, |
||
message | string | The message. |
exception | The exception. | |
리턴 | void |
public void Error(string message, Exception exception)
{
ConsoleColor color = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(message);
Console.WriteLine(exception);
Console.ForegroundColor = color;
}
public void WhenCallingErrorShouldEnterErrorMethod() { ConsoleLogger logger = new ConsoleLogger(); logger.Error("Test String", new Exception()); }