package
0.0.0-20230307183559-2da11fd39fb3
Repository: https://github.com/ngamux/middleware.git
Documentation: pkg.go.dev
# README
Log
Middleware for logging request and response data.
Usage
Import
import "github.com/ngamux/middleware/log"
Instance With Default Config
logMiddleware := log.New()
Instance With Custom Config
logMiddleware := log.New(log.Config{
Format: "${method} ${path} ${status}",
})
Mount to Ngamux
mux := ngamux.New()
mux.Use(logMiddleware)
# Functions
No description provided by the author