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

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