logrus

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

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.13.1

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.13.1

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

func (Logger) Log added in v0.13.1

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

type Option added in v0.13.1

type Option func(*Logger)

func WithLevel added in v0.13.1

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