logger

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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 Context

func Context(ctx context.Context) *logrus.Entry

func ContextWithRequestId

func ContextWithRequestId(ctx context.Context, reqId string) context.Context

func ContextWithTaskId

func ContextWithTaskId(ctx context.Context, taskId string) context.Context

func Debug

func Debug(ctx context.Context, format string, fields map[string]interface{})

func Debugf

func Debugf(ctx context.Context, format string, args ...interface{})

func Entry

func Entry(ctx context.Context) *logrus.Entry

func Error

func Error(ctx context.Context, format string, fields map[string]interface{})

func Errorf

func Errorf(ctx context.Context, format string, args ...interface{})

func Info

func Info(ctx context.Context, format string, fields map[string]interface{})

func Infof

func Infof(ctx context.Context, format string, args ...interface{})

func Warn

func Warn(ctx context.Context, format string, fields map[string]interface{})

func Warnf

func Warnf(ctx context.Context, format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL