Docker.Network.DHCP/pkg/util/http.go
2021-06-07 19:03:09 +01:00

15 lines
325 B
Go

package util
import (
"io"
"github.com/gorilla/handlers"
log "github.com/sirupsen/logrus"
)
func WriteAccessLog(w io.Writer, params handlers.LogFormatterParams) {
log.WithFields(log.Fields{
"status": params.StatusCode,
"resSize": params.Size,
}).Tracef("%v %v", params.Request.Method, params.URL.RequestURI())
}