logger

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(ctx context.Context, l Logger) context.Context

Bind return a copy of ctx with speicifc logger bind

Types

type Logger

type Logger interface {
	Log(keyvals ...interface{}) error
}

func Extract

func Extract(ctx context.Context) Logger

Extract the logger which bind with ctx. return nil if no logger bind

Jump to

Keyboard shortcuts

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