logger

package
v0.0.0-...-b5c70d1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWriter io.Writer = os.Stdout

DefaultWriter 用于日志输出的 io.Writer

Functions

func DebugToJson

func DebugToJson(name string, parameters interface{})

DebugToJson 用于在调试模式开启时输出 Json 字符串

func DebugToString

func DebugToString(name string, str interface{})

DebugToString 用于在调试模式开启时输出字符串

func Error

func Error(err error)

Error 用于打印错误

func Log

func Log(log string)

Log 用于打印日志

func Panic

func Panic(err error)

Panic 用于打印错误后抛出 panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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