log

package
v0.0.0-...-a60b5f4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LeveL_WARNING = "warning"
	LeveL_INFO    = "info"
	LeveL_DEBUG   = "debug"
	LeveL_ERROR   = "error"
	LeveL_SERIOUS = "serious"
)

Variables

View Source
var (
	ErrorWriter io.Writer
	InfoWriter  io.Writer
)

Functions

func Error

func Error(err interface{})

func Info

func Info(info E)

func InitAllLogger

func InitAllLogger()

func InitLogger

func InitLogger(path string) io.Writer

func Printf

func Printf(format string, a ...interface{})

func Println

func Println(a ...interface{})

Types

type E

type E struct {
	Function string
	Error    error
	Title    string
	Info     M
	Level    string
	Context  *gin.Context
}

type M

type M map[string]interface{}

Jump to

Keyboard shortcuts

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