logger

package
v0.0.0-...-88b6b2c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

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

func Error

func Error(msg string)

func Errorf

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

func Fatal

func Fatal(msg string)

func Fatalf

func Fatalf(format string, v ...interface{})

func Info

func Info(msg string)

func Infof

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

func SetLogLevel

func SetLogLevel(level LogLevel)

func SetOutput

func SetOutput(w io.Writer)

func Warn

func Warn(msg string)

func Warnf

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

Types

type LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
	FATAL
)

func GetLogLevel

func GetLogLevel() LogLevel

func LogLevelFromString

func LogLevelFromString(level string) LogLevel

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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