log

package
v0.9.22 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug  = &Logger{Logger: log.New(io.Discard, "", flags)}
	Stderr = &Logger{Logger: log.New(os.Stderr, "", flags)}

	DebugIsDiscard int32
)

Functions

func Debugf

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

func Debugln

func Debugln(v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Pp

func Pp(data interface{}) string

pretty print stuff

func Print

func Print(v ...interface{})

func Printf

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

func Println

func Println(v ...interface{})

func SetContinueOnFatal added in v0.9.14

func SetContinueOnFatal()

func SetDebug

func SetDebug(w io.Writer)

Types

type Logger

type Logger struct {
	*log.Logger
}

func Default

func Default() *Logger

Jump to

Keyboard shortcuts

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