logging

package
v0.0.0-...-f29dcc7 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONEncoding    = "json"
	ConsoleEncoding = "console"
)

Variables

View Source
var (
	ErrCouldNotRecognizeLogLevel = errors.New("could not recognize the log level")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Level       string
	Encoding    string
	Development bool
	Options     []zap.Option
}

type Logger

type Logger struct {
	*zap.SugaredLogger
}

func NewLogger

func NewLogger(cfg *Config) (*Logger, error)

Jump to

Keyboard shortcuts

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