You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
286 B

2 years ago
package middleware
import (
"context"
1 year ago
"git.diulo.com/mogfee/kit/logx"
2 years ago
)
1 year ago
func Logger(logger logx.Logger) Middleware {
2 years ago
//helper:=log.NewHelper(logger)
2 years ago
return func(handler Handler) Handler {
return func(ctx context.Context, a any) (any, error) {
2 years ago
return handler(ctx, a)
2 years ago
}
}
}