Documentation ¶
Index ¶
- Variables
- func BgLogger() *zap.Logger
- func Event(ctx context.Context, event string)
- func Eventf(ctx context.Context, format string, args ...interface{})
- func Hex(msg proto.Message) fmt.Stringer
- func Logger(ctx context.Context) *zap.Logger
- func SetTag(ctx context.Context, key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var CtxLogKey interface{} = ctxLogKeyType{}
CtxLogKey is the key to retrieve logger from context. It can be assigned to another value.
View Source
var TraceEventKey = "event"
TraceEventKey presents the TraceEventKey in span log.
Functions ¶
func Hex ¶
Hex defines a fmt.Stringer for proto.Message. We can't define the String() method on proto.Message, but we can wrap it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.