Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Biz = logrus.New()
Biz for user face logic logger
View Source
var Cluster = logrus.New()
Cluster for cluster error logger
View Source
var DB = logrus.New()
DB for database error logger
View Source
var Internal = logrus.New()
Internal for internal logic error
View Source
var Service = logrus.New()
Service for cluster error logger
Functions ¶
func DBError ¶
func DBError(sql interface{}, err error, message interface{})
DBError log database error
func InternalError ¶
func InternalError(funcName string, message interface{})
InternalError for logic error
func ThirdPartyServiceError ¶
func ThirdPartyServiceError(thirdPartyService string, err error, message interface{}, params ...string)
ThirdPartyServiceError for third-party node error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.