kit: github.com/go-kit/kit/log/logrus Index | Files

package logrus

import "github.com/go-kit/kit/log/logrus"

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

Index

Package Files

logrus_logger.go

func NewLogger Uses

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

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

type Logger Uses

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

func (Logger) Log Uses

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

type Option Uses

type Option func(*Logger)

func WithLevel Uses

func WithLevel(level logrus.Level) Option

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

Package logrus imports 4 packages (graph) and is imported by 1 packages. Updated 2020-04-29. Refresh now. Tools for package owners.