Documentation
¶
Index ¶
- func GetLogger(ctx context.Context) (logr.Logger, context.Context)
- func LogGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func NewLogger(ctx context.Context) (logr.Logger, context.Context)
- func WithMethod(log logr.Logger, method string) (logger logr.Logger, completionFunc func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
GetLogger retrieves the Logger from the context, or creates a new one if not present.
func LogGRPC ¶ added in v1.0.0
func LogGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.