logger

package
v0.0.0-...-782a1cc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CostLog

func CostLog(logger *zap.SugaredLogger, msg string) func()

func InitLog

func InitLog()

func NewLog

func NewLog(name string) *zap.SugaredLogger

func SetDebug

func SetDebug(enable bool)

func SetLogger

func SetLogger(logger Logger)

func Sync

func Sync()

Types

type Logger

type Logger interface {
	Error(interface{})
	Errorf(string, ...interface{})
	Warn(interface{})
	Warnf(string, ...interface{})
	Info(interface{})
	Infof(string, ...interface{})
	Debug(interface{})
	Debugf(string, ...interface{})
	SetDebug(enable bool)
	With(string) Logger
}

func NewLogger

func NewLogger(name string) Logger

Jump to

Keyboard shortcuts

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