Documentation
¶
Index ¶
- Constants
- func AppendKVs(keyvals ...interface{})
- func ExtractCtx(ctx context.Context, logType LogType) (keyvals []interface{})
- func SetCtxKV(ctx context.Context, key, val string) context.Context
- func SetCtxKVS(ctx context.Context, kvs map[string]string) context.Context
- type GLog
- type Level
- type LogType
- type Valuer
Constants ¶
View Source
const SlsTopic = "x-sls-topic"
Variables ¶
This section is empty.
Functions ¶
func ExtractCtx ¶ added in v2.1.18
Types ¶
type GLog ¶
type GLog interface {
Info(args ...interface{})
InfoF(format string, args ...interface{})
Debug(args ...interface{})
DebugF(format string, args ...interface{})
Warn(args ...interface{})
WarnF(format string, args ...interface{})
Error(args ...interface{})
ErrorF(format string, args ...interface{})
Fatal(args ...interface{})
FatalF(format string, args ...interface{})
CommonLog(level Level, ctx context.Context, keyvals ...interface{}) error
}
Click to show internal directories.
Click to hide internal directories.