C# Class SwiftClient.AspNetCore.SwiftServiceLogger

Inheritance: ISwiftLogger
Show file Open project: vtfuture/SwiftClient

Public Methods

Method Description
LogAuthenticationError ( Exception ex, string username, string password, string endpoint ) : void
LogRequestError ( Exception ex, HttpStatusCode statusCode, string reason, string requestUrl ) : void
LogUnauthorizedError ( string token, string endpoint ) : void
SwiftServiceLogger ( ILogger logger ) : System

Method Details

LogAuthenticationError() public method

public LogAuthenticationError ( Exception ex, string username, string password, string endpoint ) : void
ex System.Exception
username string
password string
endpoint string
return void

LogRequestError() public method

public LogRequestError ( Exception ex, HttpStatusCode statusCode, string reason, string requestUrl ) : void
ex System.Exception
statusCode HttpStatusCode
reason string
requestUrl string
return void

LogUnauthorizedError() public method

public LogUnauthorizedError ( string token, string endpoint ) : void
token string
endpoint string
return void

SwiftServiceLogger() public method

public SwiftServiceLogger ( ILogger logger ) : System
logger ILogger
return System