logctx

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLogger

func ExtractLogger(ctx context.Context) io.Writer

Types

type ContextKey

type ContextKey string
var (
	LogContextKey ContextKey = "plogContext"
	LoggerKey     ContextKey = "plogLogger"
)

type LogContext

type LogContext struct {
	Group  []string
	Keys   []string
	Values []string
}

func GetLogContext

func GetLogContext(c context.Context) *LogContext

Jump to

Keyboard shortcuts

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