log

package
v0.0.0-...-349f63c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyRequestId = "ctx-key::request-id"
)

Variables

This section is empty.

Functions

func CostLogs

func CostLogs(l *zap.SugaredLogger, msg string) func()

func DebugLog

func DebugLog(enable bool)

func GetRequestId

func GetRequestId(ctx context.Context) string

func NewLogger

func NewLogger(name string) *zap.SugaredLogger

func Sync

func Sync()

func WithRequestId

func WithRequestId(ctx context.Context, rId string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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