Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Biz = logrus.New()
Biz for logic 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 ThirdPartyServiceLogger = logrus.New()
ThirdPartyServiceLogger for service error logger
Functions ¶
func DBError ¶
func DBError(sql interface{}, err error, message interface{})
DBError log databse 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 service error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.