Documentation ¶
Index ¶
- func ContextLoggerWithFields(ctx context.Context, fields ...string) context.Context
- func GetLogger(ctx context.Context, object interface{}) *logrus.Entry
- func GetLoggerWithFields(ctx context.Context, fields ...string) *logrus.Entry
- func NewTracingHook() logrus.Hook
- func TracingLoggerMiddleWare(handler http.Handler) http.Handler
- func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextLoggerWithFields ¶ added in v2.2.78
func GetLogger ¶
GetLogger returns the current logger with the given prefix or type name from the context.
func GetLoggerWithFields ¶ added in v2.2.78
func NewTracingHook ¶
func TracingLoggerMiddleWare ¶ added in v2.2.79
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.