logger

package
v0.0.0-...-3208bda Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorLog

func ErrorLog(t, path string, err error)

通用错误处理日志记录:错误已经发生,特别区分handler和model位置的错误; 由错误处理函数调用,path在错误处理跟踪

func FailLog

func FailLog(path string, err error)

退出程序的日志记录:致命错误导致程序退出; 由Ef函数调用,path在错误处理跟踪

func InfoLog

func InfoLog(where, info string)

信息日志记录:通知用户一个操作或状态发生了变化,只作为正常输出; 由业务逻辑直接调用

func WarmLog

func WarmLog(info string)

警告日志记录:当前或未来潜在问题(比如响应速度慢、连接断开、内存吃紧等等); 由业务逻辑直接调用

Types

This section is empty.

Jump to

Keyboard shortcuts

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