logging

package
v0.0.0-...-6816ca5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLogr

func ExtractLogr(ctx context.Context) logr.Logger

ExtractLogr extracts the logr.Logger from the context and adds the grpc tags to the logger.

func UnaryLogBMCIP

func UnaryLogBMCIP() grpc.UnaryServerInterceptor

UnaryLogBMCIP returns a new unary server interceptors that adds the BMC IP to the logger.

func UnaryLogRequestID

func UnaryLogRequestID(requestIDKey, requestIDLogKey string) grpc.UnaryServerInterceptor

UnaryLogRequestID returns a new unary server interceptors that adds logr.Logger with requestID to the context if a requestID doesnt exist.

func UnaryServerInterceptor

func UnaryServerInterceptor(logger logr.Logger) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptors that adds logr.Logger to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL