log

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextExtractor added in v0.15.0

func ContextExtractor(ctx context.Context) []field.Field

func Debug

func Debug(ctx context.Context, msgFormat string, args ...interface{})

Debug Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Debugf` instead

func Debuge

func Debuge(e pubsub.Event, msgFormat string, args ...interface{})

Debuge Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Debuge` instead

func Debugf

func Debugf(msgFormat string, args ...interface{})

Debugf Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Debugf` instead

func Error

func Error(ctx context.Context, msgFormat string, args ...interface{})

Error Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Errorf` instead

func Errore

func Errore(e pubsub.Event, msgFormat string, args ...interface{})

Errore Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Errore` instead

func Errorf

func Errorf(msgFormat string, args ...interface{})

Errorf Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Errorf` instead

func Fatal

func Fatal(ctx context.Context, msgFormat string, args ...interface{})

Fatal Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Fatalf` instead

func Fatale

func Fatale(e pubsub.Event, msgFormat string, args ...interface{})

Fatale Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Fatale` instead

func Fatalf

func Fatalf(msgFormat string, args ...interface{})

Fatalf Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Fatalf` instead

func Info

func Info(ctx context.Context, msgFormat string, args ...interface{})

Info Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Infof` instead

func Infoe

func Infoe(e pubsub.Event, msgFormat string, args ...interface{})

Infoe Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Infoe` instead

func Infof

func Infof(msgFormat string, args ...interface{})

Infof Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Infof` instead

func ReplaceGlobal

func ReplaceGlobal(logger log.Logger)

ReplaceGlobal Register a logger instance as global

func Warn

func Warn(ctx context.Context, msgFormat string, args ...interface{})

Warn Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Warnf` instead

func Warne

func Warne(e pubsub.Event, msgFormat string, args ...interface{})

Warne Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Warne` instead

func Warnf

func Warnf(msgFormat string, args ...interface{})

Warnf Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Warnf` instead

Types

type ContextAttributes added in v0.15.0

type ContextAttributes struct {
	CorrelationId     string `json:"request_id,omitempty"`
	UserId            string `json:"jwt_subject,omitempty"`
	DeviceId          string `json:"device_id,omitempty"`
	DeviceSessionId   string `json:"device_session_id,omitempty"`
	TechnicalUsername string `json:"technical_username,omitempty"`
}

func NewContextAttributesFromEventAttrs added in v0.15.0

func NewContextAttributesFromEventAttrs(attributes *event.Attributes) *ContextAttributes

func NewContextAttributesFromReqAttr added in v0.15.0

func NewContextAttributesFromReqAttr(requestAttributes *webContext.RequestAttributes) *ContextAttributes

func (ContextAttributes) MarshalLogObject added in v0.15.0

func (c ContextAttributes) MarshalLogObject(encoder field.ObjectEncoder) error

Jump to

Keyboard shortcuts

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