logger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet exports for wire DI.

Functions

func NewLogger

func NewLogger(opts *Options) (*zap.Logger, error)

NewLogger returns new zap logger from config.

Types

type Options

type Options struct {
	Filename   string
	MaxSize    int
	MaxBackups int
	MaxAge     int
	Level      string
	Stdout     bool
}

Options for logger.

func NewOptions

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

NewOptions returns options from config.

Jump to

Keyboard shortcuts

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