This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vapor | |
/// Middleware for outputting all http requests and their responses | |
final class LoggingMiddleware : Middleware, ServiceType { | |
static func makeService(for container: Container) throws -> Self { | |
return try .init(environment: container.environment, log: container.make()) | |
} | |
init(environment: Environment, log: Logger) { | |
self.environment = environment |
NewerOlder