logging

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *slog.Logger

func Disable

func Disable()

func Extract

func Extract(ctx context.Context) *slog.Logger

func Inject

func Inject(ctx context.Context, logger *slog.Logger) context.Context

func SetDefault

func SetDefault(logger *slog.Logger)

Types

type NopWriter

type NopWriter struct{}

func (*NopWriter) Write

func (x *NopWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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