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
284 B

2 years ago
package middleware
import (
"context"
2 years ago
"git.diulo.com/mogfee/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
return handler(ctx, a)
2 years ago
}
}
}