Error() public method

Logs the message and exception with error level.
public Error ( string message, Exception exception ) : void
message string The message.
exception System.Exception The exception.
return void
Example #1
0
        public void WhenCallingErrorShouldEnterErrorMethod()
        {
            ConsoleLogger logger = new ConsoleLogger();

            logger.Error("Test String", new Exception());
        }