Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 190 Bytes
package mango
import (
"log"
)
func Logger(logger *log.Logger) Middleware {
return func(env Env, app App) (Status, Headers, Body) {
env["mango.logger"] = logger
return app(env)
}
}