log

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

View Source
const (
	Debug level = "debug"
	Info  level = "info"
	Warn  level = "warn"
	Error level = "error"
)

LogLevel constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.SugaredLogger
}

Logger is a wrapper around zap sugared logger

func GetLogger

func GetLogger() *Logger

GetLogger return instance of logger

func (*Logger) ChangeLevel

func (lg *Logger) ChangeLevel(lc <-chan string)

ChangeLevel changes the log level of logger

Jump to

Keyboard shortcuts

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