Documentation
¶
Index ¶
- func Debug(msg string, fields map[string]interface{})
- func DebugCtx(ctx context.Context, msg string, fields map[string]interface{})
- func Error(msg string, fields map[string]interface{})
- func ErrorCtx(ctx context.Context, msg string, fields map[string]interface{})
- func Fatal(msg string, fields map[string]interface{})
- func FatalCtx(ctx context.Context, msg string, fields map[string]interface{})
- func FromContext(ctx context.Context) *log.Logger
- func Info(msg string, fields map[string]interface{})
- func InfoCtx(ctx context.Context, msg string, fields map[string]interface{})
- func Init(cfg InitConfig)
- func Logger() *log.Logger
- func ResetLoggerForTest()
- func Warn(msg string, fields map[string]interface{})
- func WarnCtx(ctx context.Context, msg string, fields map[string]interface{})
- func WithRunID(ctx context.Context, id string) context.Context
- func WithTraceID(ctx context.Context, id string) context.Context
- func WithWorkflowID(ctx context.Context, id string) context.Context
- type InitConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns a contextual logger with run_id, workflow_id, etc.
func ResetLoggerForTest ¶
func ResetLoggerForTest()
Types ¶
Click to show internal directories.
Click to hide internal directories.