context

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogContext

type LogContext interface {
	GetTime() time.Time
	GetCaller() string
	GetLevel() level.Level
	SetTime(t time.Time)
	SetCaller(caller string)
	SetLevel(lvl level.Level)
	Deadline() (deadline time.Time, ok bool)
	Done() <-chan struct{}
	Err() error
	Value(key interface{}) interface{}
}

func NewLogContext

func NewLogContext(ctx context.Context, lvl level.Level, callerRecurse ...int) LogContext

Jump to

Keyboard shortcuts

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