log

package
v0.0.0-...-4c59aa4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GO_LOG = "GO_LOG"
)

Variables

View Source
var LogLevel = map[string]int{
	"trace": 0,
	"info":  1,
	"warn":  2,
	"error": 3,
}

Functions

func Assert

func Assert(err error)

Assert error and exit process

func AssertEmpty

func AssertEmpty(v interface{})

Assert error and exit process

func Error

func Error(ctx string, a ...interface{})

Warn Logs

func Info

func Info(ctx string, a ...interface{})

Info logs

func IsEmpty

func IsEmpty(x interface{}) bool

Check if is empty

func Trace

func Trace(ctx string, a ...interface{})

Trace Logs

func Warn

func Warn(ctx string, a ...interface{})

Warn Logs

Types

This section is empty.

Jump to

Keyboard shortcuts

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