Skip to content
Vapor middleware for logging incoming requests
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
Public
Sources/Boomerang
Tests
.dockerignore
.gitignore
CONTRIBUTING.md
Package.resolved
Package.swift
README.md
cloud.yml
web.Dockerfile

README.md

Boomerang

Boomerang is a middleware package that allows configurable logging of incoming requests.

// Request Logger
let boomerangMiddleware = BoomerangMiddleware { (req, logger) in
    logger.info("Incoming request at \(req.http.method.string) \(req.http.urlString)")
}
services.register(boomerangMiddleware)
middlewares.use(BoomerangMiddleware.self)
You can’t perform that action at this time.