logging

package
v0.0.0-...-900d465 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogrusAdapter

func NewLogrusAdapter(logger *logrus.Logger) log.Logger

NewLogrusAdapter creates a new LogrusAdapter with the provided logrus.Logger.

Types

type LogrusAdapter

type LogrusAdapter struct {
	Logger *logrus.Logger
}

LogrusAdapter is an adapter that allows logrus Logger to be used as a go-kit/log Logger.

func (*LogrusAdapter) Log

func (la *LogrusAdapter) Log(keyvals ...interface{}) error

Log implements the go-kit/log Logger interface.

Jump to

Keyboard shortcuts

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