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.

17 lines
317 B

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