logger

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyRequestID     ContextKey = "requestID"
	ContextKeyRequestSource ContextKey = "requestSource"
	CRDControllerEvent      ContextKey = "crdControllerEvent"

	ContextSourceCRD      = "CRD"
	ContextSourceREST     = "REST"
	ContextSourceK8S      = "Kubernetes"
	ContextSourceDocker   = "Docker"
	ContextSourceCSI      = "CSI"
	ContextSourceInternal = "Internal"
	ContextSourcePeriodic = "Periodic"

	LogSource = "logSource"
)

Variables

This section is empty.

Functions

func GenerateRequestContext

func GenerateRequestContext(ctx context.Context, requestID, requestSource string) context.Context

func Logc

func Logc(ctx context.Context) *log.Entry

Types

type ContextKey

type ContextKey string // ContextKeyRequestID is the ContextKey for RequestID

ContextKey is used for context.Context value. The value requires a key that is not primitive type.

Jump to

Keyboard shortcuts

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