logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encoder added in v0.1.1

func Encoder(cfg *Config) zapcore.Encoder

func LoggerLevel added in v0.1.1

func LoggerLevel(cfg *Config) zap.AtomicLevel

func NewNoop added in v0.1.1

func NewNoop() *zap.Logger

func NewZap

func NewZap(cfg *Config) *zap.Logger

func Options added in v0.1.1

func Options(cfg *Config) []zap.Option

func WriteSyncer added in v0.1.1

func WriteSyncer(cfg *Config) zapcore.WriteSyncer

Types

type Config

type Config struct {
	Development bool   `koanf:"development"`
	Encoding    string `koanf:"encoding"`
	Level       string `koanf:"level"`
}

Jump to

Keyboard shortcuts

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