log

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Output io.Writer = os.Stderr
	Flags            = log.Ltime | log.Lmicroseconds

	PrefixPanic  = "PANIC! "
	PrefixError  = "Error: "
	PrefixInfo   = "Info:  "
	PrefixDebug  = "Debug: "
	DebugGreyLvl = uint8(11)

	Quiet = true

	LogPath = filepath.Join(os.TempDir(), "gtkcord3.log")
)

Functions

func Benchmark

func Benchmark(thing string) func()

func BenchmarkLoop

func BenchmarkLoop(thing string) (func(), func())

func Debugf

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

func Debugln

func Debugln(v ...interface{})

func Errorf

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

func Errorln

func Errorln(v ...interface{})

func Fatalf

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

func Fatalln

func Fatalln(v ...interface{})

func Infof

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

func Infoln

func Infoln(v ...interface{})

func Panicf

func Panicf(f string, v ...interface{})

func Panicln

func Panicln(v ...interface{})

func Printf

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

func Println

func Println(v ...interface{})

func ResetLoggers

func ResetLoggers()

func Trace

func Trace(n int) string

Trace, n is the argument to skip callers. 0 shows the location of the Trace function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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