logger

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerManager

type LoggerManager struct {
	// contains filtered or unexported fields
}

LoggerManager updates log configurations online.

func NewLoggerManager

func NewLoggerManager(cfg *config.Log) (*LoggerManager, *zap.Logger, error)

NewLoggerManager creates a new LoggerManager.

func (*LoggerManager) Close

func (lm *LoggerManager) Close() error

Close releases all resources.

func (*LoggerManager) Init

func (lm *LoggerManager) Init(cfgch <-chan *config.Config)

Init starts a goroutine to watch configuration.

func (*LoggerManager) SetLoggerLevel added in v1.1.0

func (lm *LoggerManager) SetLoggerLevel(l zapcore.Level)

Jump to

Keyboard shortcuts

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