log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.0.2

func Debug(ctx context.Context, msg string, kv ...interface{})

示例 log.Debug(ctx, "调试一下", "order_id", order_id)

func Error added in v0.0.2

func Error(ctx context.Context, msg string, kv ...interface{})

示例 log.Error(ctx, "出错啦", "order_id", order_id)

func Fatal added in v0.0.2

func Fatal(ctx context.Context, msg string, kv ...interface{})

示例 log.Fatal(ctx, "严重错误", "order_id", order_id)

func Info

func Info(ctx context.Context, msg string, kv ...interface{})

示例 log.Info(ctx, "操作成功啦", "order_id", order_id)

func InitDevLogger added in v0.0.2

func InitDevLogger()

func InitPrdLogger added in v0.0.2

func InitPrdLogger()

func Warn added in v0.0.2

func Warn(ctx context.Context, msg string, kv ...interface{})

示例 log.Warn(ctx, "警告", "order_id", order_id)

Types

type LogBasicInfo

type LogBasicInfo struct {
	RequestId string
	Uid       int64
}

Jump to

Keyboard shortcuts

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