Documentation ¶
Index ¶
- func ContextExtractor(ctx context.Context) []field.Field
- func Debug(ctx context.Context, msgFormat string, args ...interface{})
- func Debuge(e pubsub.Event, msgFormat string, args ...interface{})
- func Debugf(msgFormat string, args ...interface{})
- func Error(ctx context.Context, msgFormat string, args ...interface{})
- func Errore(e pubsub.Event, msgFormat string, args ...interface{})
- func Errorf(msgFormat string, args ...interface{})
- func Fatal(ctx context.Context, msgFormat string, args ...interface{})
- func Fatale(e pubsub.Event, msgFormat string, args ...interface{})
- func Fatalf(msgFormat string, args ...interface{})
- func Info(ctx context.Context, msgFormat string, args ...interface{})
- func Infoe(e pubsub.Event, msgFormat string, args ...interface{})
- func Infof(msgFormat string, args ...interface{})
- func ReplaceGlobal(logger log.Logger)
- func Warn(ctx context.Context, msgFormat string, args ...interface{})
- func Warne(e pubsub.Event, msgFormat string, args ...interface{})
- func Warnf(msgFormat string, args ...interface{})
- type ContextAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Debugf` instead
func Debuge ¶
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 ¶
Error Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Errorf` instead
func Errore ¶
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 ¶
Fatal Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Fatalf` instead
func Fatale ¶
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 Infof ¶
func Infof(msgFormat string, args ...interface{})
Infof Deprecated: use `gitlab.com/golibs-starter/golib/log.WithCtx(ctx).Infof` instead
func ReplaceGlobal ¶
ReplaceGlobal Register a logger instance as global
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