MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewLogMiddleware

Function NewLogMiddleware

middleware/log.go:25–29  ·  view source on GitHub ↗
(l *zap.Logger)

Source from the content-addressed store, hash-verified

23}
24
25func NewLogMiddleware(l *zap.Logger) *LogMiddleware {
26 return &LogMiddleware{
27 l: l,
28 }
29}
30
31// Log 日志中间件
32func (lm *LogMiddleware) Log() gin.HandlerFunc {

Callers 1

InitMiddlewaresFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected