Structuresoto-core 7.4.0SotoCore
AWSLoggingMiddleware
Middleware that outputs the contents of requests being sent to AWS and the contents of the responses received.
struct AWSLoggingMiddleware
Middleware that outputs the contents of requests being sent to AWS and the contents of the responses received.
struct AWSLoggingMiddleware
import SotoCore
protocol AWSMiddlewareProtocol : Sendable
Middleware protocol, with function that takes a request, context and the next function to call
protocol Sendable
init(log: @escaping LoggingFunction = { print($0) })
initialize AWSLoggingMiddleware
init(logger: Logger, logLevel: Logger.Level = .info)
initialize AWSLoggingMiddleware to use Logger
func handle(_ request: AWSHTTPRequest, context: AWSMiddlewareContext, next: AWSMiddlewareNextHandler) async throws -> AWSHTTPResponse
typealias LoggingFunction = (String) -> Void