Required Instance Methodvapor 4.106.3Vapor
logging(to:)
Client.swift:9func logging(to logger: Logger) -> Client
func logging(to logger: Logger) -> Client
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Client : Sendable
struct Logger
A Logger
is the central type in SwiftLog
. Its central function is to emit log messages using one of the methods corresponding to a log level.
var byteBufferAllocator: ByteBufferAllocator { get }
var eventLoop: EventLoop { get }
func allocating(to byteBufferAllocator: ByteBufferAllocator) -> Client
func delegating(to eventLoop: EventLoop) -> Client
func send(_ request: ClientRequest) -> EventLoopFuture<ClientResponse>
func logging(to logger: Logger) -> Client