Documentation ¶
Index ¶
- Constants
- func Context(ctx context.Context) *logrus.Entry
- func ContextWithRequestId(ctx context.Context, reqId string) context.Context
- func ContextWithTaskId(ctx context.Context, taskId string) context.Context
- func Debug(ctx context.Context, format string, fields map[string]interface{})
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Entry(ctx context.Context) *logrus.Entry
- func Error(ctx context.Context, format string, fields map[string]interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Info(ctx context.Context, format string, fields map[string]interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func Warn(ctx context.Context, format string, fields map[string]interface{})
- func Warnf(ctx context.Context, format string, args ...interface{})
Constants ¶
View Source
const ContextKeyRequestId string = "requestId"
View Source
const ContextKeyTaskId string = "taskId"
View Source
const LogContextKeyRequestId string = "requestId"
View Source
const LogContextKeyTaskId string = "taskId"
Variables ¶
This section is empty.
Functions ¶
func ContextWithRequestId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.