logger

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CorrelationIDKey = "correlation_id"
)

Variables

View Source
var (
	CorrelationIDContextKey = contextKey(CorrelationIDKey)
)

Functions

func GenerateCorrelationID

func GenerateCorrelationID() slog.Attr

func GetCorrelationID

func GetCorrelationID(ctx context.Context) string

func GetCorrelationIDAttr

func GetCorrelationIDAttr(ctx context.Context) slog.Attr

func GetLogLevel

func GetLogLevel(level string) slog.Level

func New

func New(logPath, level string) *slog.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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