Documentation ¶
Index ¶
- func NoContext() *logrus.Logger
- func WithContext(ctx context.Context) *logrus.Entry
- func WithError(ctx context.Context, err error) *logrus.Entry
- func WithField(ctx context.Context, key string, value interface{}) *logrus.Entry
- func WithFields(ctx context.Context, f Fields) *logrus.Entry
- func WrapEntry(ctx context.Context, e *logrus.Entry) *logrus.Entry
- type Fields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
WithContext provides a *logrus.Entry with the proper "correlation_id" field.
"[MISSING]" will be used when ctx has no value for KeyCorrelationID
func WithFields ¶
WithFields decorates logrus.WithFields with the proper "correlation_id"
Types ¶
Click to show internal directories.
Click to hide internal directories.