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{}

Source Files