logger

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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

func Encoder(cfg *Config) zapcore.Encoder

func LoggerLevel

func LoggerLevel(cfg *Config) zap.AtomicLevel

func NewNoop

func NewNoop() *zap.Logger

func NewZap

func NewZap(cfg *Config) *zap.Logger

func Options

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

func WriteSyncer

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