logger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug ...

func Debugf

func Debugf(format string, args ...any)

Debugf ...

func DisableLogger

func DisableLogger()

DisableLogger turn off all logs, globally.

func Error

func Error(args ...any)

Error ...

func Errorf

func Errorf(format string, args ...any)

Errorf ...

func Fatal

func Fatal(args ...any)

Fatal ...

func Fatalf

func Fatalf(format string, args ...any)

Fatalf ...

func GetLogger

func GetLogger() *zap.SugaredLogger

GetLogger returns current global logger.

func Info

func Info(args ...any)

Info ...

func Infof

func Infof(format string, args ...any)

Infof ...

func LoggerIsDisable added in v0.2.0

func LoggerIsDisable() bool

LoggerIsDisable checks the status of the logger (true - disabled, false - enabled)

func SetLogger

func SetLogger(l *zap.SugaredLogger)

SetLogger sets to global logger a new *zap.SugaredLogger.

func Warn

func Warn(args ...any)

Warn ...

func Warnf

func Warnf(format string, args ...any)

Warnf ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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