startup_logrus

package
v2.2.78 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextLoggerWithFields added in v2.2.78

func ContextLoggerWithFields(ctx context.Context, fields ...string) context.Context

func GetLogger

func GetLogger(ctx context.Context, object interface{}) *logrus.Entry

GetLogger returns the current logger with the given prefix or type name from the context.

func GetLoggerWithFields added in v2.2.78

func GetLoggerWithFields(ctx context.Context, fields ...string) *logrus.Entry

func NewTracingHook

func NewTracingHook() logrus.Hook

func WithLogger

func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context

WithLogger stores the entry into the context so it can be retrieved with GetLogger later.

Types

This section is empty.

Jump to

Keyboard shortcuts

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