Request

Response

    Log.Error method (1 of 3)

    Write Error Logs.

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

    See Also


    Log.Error method (2 of 3)

    Write Error logs and Calling Function Name.

    public void Error(string message, [CallerMemberName] string caller = null)
    
    parameterdescription
    message Message to log.
    caller Caller name. If not passed then logs the last calling function.
    callerPath Caller file path. If not passed then logs the last calling function's file path.

    See Also


    Log.Error method (3 of 3)

    Write Error Logs with contextual message and exception.

    public void Error(string message, Exception exception, [CallerMemberName] string caller = null)
    
    parameterdescription
    message Message to log.
    exception Exception object.
    caller Caller name. If not passed then logs the last calling function.

    See Also