logruslogger

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 16 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

func SetupLevelChangeOnSignal added in v1.14.1

func SetupLevelChangeOnSignal(ctx context.Context, signals map[os.Signal]logrus.Level)

SetupLevelChangeOnSignal sets the loglevel to the one specified in the map when a signal assotiated to it arrives

Types

This section is empty.

Jump to

Keyboard shortcuts

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