log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatViperKey = "log.format"
)
View Source
const (
	LevelViperKey = "log.level"
)

Variables

This section is empty.

Functions

func Flags added in v0.2.0

func Flags(v *viper.Viper, f *pflag.FlagSet)

func Format added in v0.2.0

func Format(v *viper.Viper, f *pflag.FlagSet)

func Level added in v0.2.0

func Level(v *viper.Viper, f *pflag.FlagSet)

func New added in v0.2.0

func New(cfg *Config) (*logrus.Logger, error)

Types

type Config

type Config struct {
	Level, Format string
}

func NewConfigFromViper added in v0.2.0

func NewConfigFromViper(v *viper.Viper) *Config

func (*Config) SetDefault added in v0.2.0

func (cfg *Config) SetDefault() *Config

Jump to

Keyboard shortcuts

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