Request

Response

    ILogger.Error method (1 of 2)

    Logs the specified error exception.

    public void Error(Exception exception)
    
    parameterdescription
    exception The exception.

    Remarks

    This method logs the specified exception to the application’s log file. The exception will be logged with a severity of “Error”.

    See Also


    ILogger.Error method (2 of 2)

    Logs the specified error message.

    public void Error(string message, [CallerMemberName] string caller = null)
    
    parameterdescription
    message The message.
    caller The caller.

    Remarks

    This method logs the specified message to the application’s log file. The message will be logged with a severity of “Error”.

    See Also