logrus

package
v0.0.0-...-982d8ef Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(NewConfigFromEnv),
	fx.Provide(New),
	fx.Invoke(func(lr *Logrus) error {
		return lr.Init()
	}),
)

Functions

func ParseEnv

func ParseEnv() (logrus.Level, logrus.Formatter, io.Writer, bool)

Types

type Config

type Config struct {
	Level      logrus.Level
	Formatter  logrus.Formatter
	Output     io.Writer
	StackTrace bool
}

Config ...

func NewConfigFromEnv

func NewConfigFromEnv() *Config

type Logrus

type Logrus struct {
	*Config
}

func New

func New(config *Config) *Logrus

func (*Logrus) Init

func (p *Logrus) Init() error

Jump to

Keyboard shortcuts

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