log

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProviderProductionSet provides a Log for use in production.
	ProviderProductionSet = wire.NewSet(Provide, Cfg)
)

Functions

func Cfg

func Cfg(v *viper.Viper) *zap.Config

Cfg returns a Zap Config configured using the provided Viper.

Types

type Log

type Log struct {
	ZapLogger *zap.Logger
}

Log is a log implementation for the application that uses a Zap logger.

func Build

func Build(v *viper.Viper) (*Log, func(), error)

func NewLog

func NewLog(cfg *zap.Config) (*Log, error)

NewLog returns a new Log configured with the provided Config.

func Provide

func Provide(cfg *zap.Config) (*Log, func(), error)

Provide provides a new Log configured with the given Config.

Jump to

Keyboard shortcuts

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