log

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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