logruslogger

package
v1.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 12 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 map[string]interface{}) (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