func FromContext(ctx context.Context) logr.Logger {
	log, ok := ctx.Value(logKey).(logr.Logger)
	if !ok {
		return Logger()
	}
	return log
}
FromContext returns the logger from context.
package log
import (
	"context"
	"github.com/go-logr/logr"
)
type key int
const (
	logKey key = iota
)
func WithContext(parent context.Context, logger logr.Logger) context.Context {
	return context.WithValue(parent, logKey, logger)
}
func Ctx(ctx context.Context) logr.Logger {
	return FromContext(ctx)
}