logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New, NewOptions)

Functions

func New

func New(o *Options) (*zap.Logger, error)

New constructs a new logger from the provided Options.

Types

type Options

type Options struct {
	Level    int
	FileName string
	Stdout   bool
}

func NewOptions

func NewOptions(v *viper.Viper) (*Options, error)

NewOptions returns new log options.

Jump to

Keyboard shortcuts

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