logger

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilLogger = errors.New("logger is nil")

ErrNilLogger is returned by functions that expect a non-nil Logger, but received nil.

Functions

This section is empty.

Types

type Logger

type Logger = zap.Logger

Logger represents the component for writing messages to log.

It is a type alias of go.uber.org/zap.Logger.

func NewLogger

func NewLogger(v *viper.Viper) (*Logger, error)

NewLogger is a logger's constructor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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