fxlogrus

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(logger logrus.FieldLogger) func(*logrusAdapter)

Logger sets a logrus instance in the logrus adapter.

func New

func New(options ...Option) log.Logger

New returns a new go-kit logger instance wrapping a logrus logger.

Types

type Option

type Option func(*logrusAdapter)

Option sets options in the logrus adapter.

func DefaultLevel

func DefaultLevel(lvl level.Value) Option

DefaultLevel sets the default log level. By default, it's INFO.

func LevelKey

func LevelKey(key string) Option

LevelKey sets the key for the log level. By default, it's "level".

func MessageKey

func MessageKey(key string) Option

MessageKey sets the key for the actual log message. By default, it's "msg".

Jump to

Keyboard shortcuts

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