logruslogger

package
v1.13.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 32

Documentation

Overview

Package logruslogger provides wrapper for logrus logger which is consistent with Logger interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromSpan

func FromSpan(
	ctx context.Context, span spanlogger.Span, operation string, fields []*log.Field) (context.Context, log.Logger, func())

FromSpan - creates a new logruslogger from context, operation and span and returns context with it, logger, and a function to defer

func New

func New(ctx context.Context, fields ...logrus.Fields) log.Logger

New - create a logruslogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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