logger

package
v0.0.0-...-386ad9e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Info

func Info(v ...interface{})

func Infof

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

func SetLevel

func SetLevel(l LogLevel)

func SetLevelFromString

func SetLevelFromString(level string)

Types

type LogLevel

type LogLevel int
const (
	FatalLevel LogLevel = iota
	ErrorLevel
	InfoLevel
	DebugLevel
)

func ParseLevel

func ParseLevel(level string) LogLevel

type Logger

type Logger struct {
	*log.Logger
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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