log

package
v0.0.0-...-8725c39 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyContext

func CopyContext(ctx context.Context) context.Context

CopyContext copy context

func FromSpanIDContext

func FromSpanIDContext(ctx context.Context) (spanID string, ok bool)

FromSpanIDContext ...

func FromTraceIDContext

func FromTraceIDContext(ctx context.Context) (traceID string, ok bool)

FromTraceIDContext ...

func FromUserIDContext

func FromUserIDContext(ctx context.Context) (userID string, ok bool)

FromUserIDContext ...

func NewSpanIDContext

func NewSpanIDContext(ctx context.Context, spanID string) context.Context

NewSpanIDContext ...

func NewTraceIDContext

func NewTraceIDContext(ctx context.Context, traceID string) context.Context

NewTraceIDContext ...

func NewUserIDContext

func NewUserIDContext(ctx context.Context, userID string) context.Context

NewUserIDContext ...

Types

type Logger

type Logger interface {
	// Debugf 测试
	Debugf(format string, args ...interface{})
	// Debugln 测试
	Debugln(args ...interface{})
	// Infof 信息
	Infof(format string, args ...interface{})
	// Infoln 消息
	Infoln(args ...interface{})
	// Warnf 警告
	Warnf(format string, args ...interface{})
	// Warnln 警告
	Warnln(args ...interface{})
	// Warningf 警告
	Warningf(format string, args ...interface{})
	// Warningln 警告
	Warningln(args ...interface{})
	// Errorf 错误
	Errorf(format string, args ...interface{})
	// Errorln 错误
	Errorln(args ...interface{})
}

Logger logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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