Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WHITE  = "\x1b[1;37m"
	RED    = "\x1b[1;31m"
	GREEN  = "\x1b[1;32m"
	YELLOW = "\x1b[1;33m"
	END    = "\x1b[0m"
	OK     = GREEN + "OK" + END
	FAIL   = RED + "Fail" + END
)

Variables

This section is empty.

Functions

func Audit

func Audit(v ...interface{})

Messages for security audit.

func Dbg

func Dbg(v ...interface{})

Output debug message.

func Err

func Err(v ...interface{})

Output error message.

func Errf

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

Errf outputs formatted log.

func Fatal

func Fatal(v ...interface{})

func Fatalf

func Fatalf(err error)

Fatalf prints an error with a stack trace.

func Msg

func Msg(v ...interface{})

Output message.

func SetDebug added in v2.4.0

func SetDebug(enable bool)

SetDebug enables debug logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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