log

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 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 ...any)

func Debugln

func Debugln(v ...any)

func Fatal

func Fatal(v ...any)

func Fatalf added in v1.7.0

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

func Pp

func Pp(data any) string

pretty print stuff

func Print

func Print(v ...any)

func Printf

func Printf(format string, v ...any)

func Println

func Println(v ...any)

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