AWSLoggingMiddleware
public class AWSLoggingMiddleware : AWSServiceMiddleware
Middleware class that outputs the contents of requests being sent to AWS and the bodies of the responses received
-
initialize AWSLoggingMiddleware class
Declaration
Swift
public init(log: @escaping (String) -> () = { print($0) })
Parameters
log
Function to call with logging output
-
output request
Declaration
Swift
public func chain(request: AWSRequest) throws -> AWSRequest
-
output response
Declaration
Swift
public func chain(response: AWSResponse) throws -> AWSResponse