logs

package
v0.0.0-...-4af7ccb Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.Logger

func ReplaceLogger

func ReplaceLogger(config *LogConfig) error

This function replace the globally available logger, it must be called at the beginning of the program to prevent any concurrency issues

func SetLevel

func SetLevel(level zapcore.Level)

Types

type LogConfig

type LogConfig struct {
	Level       string   `yaml:"level"`
	OutputPaths []string `yaml:"outputPaths"`
}

func (LogConfig) Default

func (c LogConfig) Default() *LogConfig

Jump to

Keyboard shortcuts

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