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.

15 lines
253 B

2 years ago
package middleware
import (
"context"
)
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
}
}
}