logger

package
v0.0.0-...-7fdb1f7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWriter io.Writer = os.Stdout

DefaultWriter 用于日志输出的 io.Writer

Functions

func DebugToJson

func DebugToJson(key string, value interface{})

DebugToJson 在调试模式开启时将参数调试输出为 Json 字符串

func DebugToString

func DebugToString(key string, value 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