Documentation
¶
Index ¶
- func AddMapToCtx(ctx context.Context, kv map[string]string) context.Context
- func AddToCtx(ctx context.Context, key string, val string) context.Context
- func ColorPrint(ctx context.Context, color Color, v ...any)
- func Debug(ctx context.Context, v ...any)
- func DefaultHandler(ctx context.Context, in *glog.HandlerInput)
- func Error(ctx context.Context, v ...any)
- func Info(ctx context.Context, v ...any)
- func Init()
- func Logger(name ...string) *glog.Logger
- func Notice(ctx context.Context, v ...any)
- func Panic(ctx context.Context, v ...any)
- func Print(ctx context.Context, v ...any)
- func Warn(ctx context.Context, v ...any)
- type Color
- type Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMapToCtx ¶
AddMapToCtx 追加参数 - map
func DefaultHandler ¶
func DefaultHandler(ctx context.Context, in *glog.HandlerInput)
DefaultHandler 默认日志处理
Types ¶
Click to show internal directories.
Click to hide internal directories.