Back to godoc.org

Package log

v0.0.0-...-a60b5f4
Latest Go to latest

The highest tagged major version is .

Published: Oct 23, 2019 | License: MIT | Module: github.com/chenhg5/moringo

Index

Constants

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

Variables

var (
	ErrorWriter io.Writer
	InfoWriter  io.Writer
)

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier