logger

package
v0.0.0-...-47abacc Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLvl = "debug"
	InfoLvl  = "info"
	WarnLvl  = "warn"
	ErrorLvl = "error"
)

Log levels. Levels are ordered from lowest to highest (higher log level include lower one).

Variables

This section is empty.

Functions

func Custom

func Custom(msg ...interface{})

Custom logs a message at the custom level.

func Customf

func Customf(msg string, v ...interface{})

Customf logs formtted message at the custom level.

func Debug

func Debug(msg ...interface{})

Debug logs a message at the debug level.

func Debugf

func Debugf(msg string, v ...interface{})

Debugf logs formtted message at the debug level.

func Error

func Error(msg ...interface{})

Error logs a message at the error level.

func Errorf

func Errorf(msg string, v ...interface{})

Errorf logs formtted message at the error level.

func Info

func Info(msg ...interface{})

Info logs a message at the info level.

func Infof

func Infof(msg string, v ...interface{})

Infof logs formtted message at the info level.

func SetLogLevel

func SetLogLevel(lvl string)

SetLogLevel sets logger's log level.

func Warn

func Warn(msg ...interface{})

Warn logs a message at the warn level.

func Warnf

func Warnf(msg string, v ...interface{})

Warnf logs formtted message at the 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