log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(tmpl string, args ...interface{})

Debugf logs a message at debug level.

func Errorf

func Errorf(tmpl string, args ...interface{})

Errorf logs a message at error level.

func Fatalf

func Fatalf(tmpl string, args ...interface{})

Fatalf logs a message at fatal level. The os.Exit(1) is called at the end. Due to os. Exit() being called, the defer function will not be called.

func Infof

func Infof(tmpl string, args ...interface{})

Infof logs a message at info level.

func InitLogger

func InitLogger(cfg *config.LogConfig)

InitLogger initializes the logger.

func IsQuiet

func IsQuiet() bool

func Panicf

func Panicf(tmpl string, args ...interface{})

Panicf logs a message at panic level. And then panics.

func Quietf

func Quietf(tmpl string, args ...interface{})

Quietf logs a message at info level. Will also output simple message to the console in quiet mode

func Warnf

func Warnf(tmpl string, args ...interface{})

Warnf logs a message at warn level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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