log

package
v0.0.0-...-6b2d211 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCtx

func AppendCtx(parent context.Context, attr slog.Attr) context.Context

AppendCtx adds an slog attribute to the provided context so that it will be included in any Record created with such context

func InitLogger

func InitLogger()

Types

type DatadogContextHandler

type DatadogContextHandler struct {
	slog.Handler
}

func (DatadogContextHandler) Handle

Handle adds contextual attributes to the Record before calling the underlying handler

Jump to

Keyboard shortcuts

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