logger

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{Zap: zap.NewProductionConfig()},
	Dev:     &Config{Zap: zap.NewDevelopmentConfig()},
}

Functions

func New

func New(cfg *Config) (*zap.Logger, error)

Types

type Config

type Config struct {
	Zap      zap.Config `koanf:"zap"`
	Level    int        `koanf:"level"`    // -1 = Debug, 0 = Info, etc.
	Encoding string     `koanf:"encoding"` // "json" or "console".
}

Jump to

Keyboard shortcuts

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