logrus

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 26

Documentation

Overview

Package logrus provides an adapter to the go-kit log.Logger interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger added in v0.11.0

func NewLogger(logger logrus.FieldLogger, options ...Option) log.Logger

NewLogger returns a Go kit log.Logger that sends log events to a logrus.Logger.

Types

type Logger added in v0.11.0

type Logger struct {
	// contains filtered or unexported fields
}

func (Logger) Log added in v0.11.0

func (l Logger) Log(keyvals ...interface{}) error

type Option added in v0.11.0

type Option func(*Logger)

func WithLevel added in v0.11.0

func WithLevel(level logrus.Level) Option

WithLevel configures a logrus logger to log at level for all events.

Jump to

Keyboard shortcuts

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