log

package
v0.0.0-...-57be9ed Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(name string) *zap.Logger

func GetRootLogger

func GetRootLogger() *zap.Logger

func GetSugaredLogger

func GetSugaredLogger(name string) *zap.SugaredLogger

func SetupLogging

func SetupLogging(cfg Config) error

Types

type Config

type Config struct {
	Level       string
	Development bool
	Encoding    string
	TZ          *time.Location
}

Jump to

Keyboard shortcuts

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