log

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const LinkIDKey = "linkId"

Variables

This section is empty.

Functions

func ErrorS

func ErrorS(ctx context.Context, err error, msg string, keysAndValues ...interface{})

ErrorS print error log

func GetCtxFields

func GetCtxFields(ctx context.Context) []interface{}

func InfoS

func InfoS(ctx context.Context, msg string, keysAndValues ...interface{})

InfoS print info log

func InitContext

func InitContext(ctx context.Context) context.Context

InitContext set context info such as accountId for logger

func SetKeysAndValues

func SetKeysAndValues(ctx context.Context, keysAndValues ...interface{}) context.Context

SetKeysAndValues set KeysAndValues into ctx

Types

type Verbose

type Verbose struct {
	klog.Verbose
}

func V

func V(level klog.Level) Verbose

func (Verbose) InfoS

func (v Verbose) InfoS(ctx context.Context, msg string, keysAndValues ...interface{})

InfoS print info log

Jump to

Keyboard shortcuts

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