- global Log instance.

- CallFuncLogError.
This commit is contained in:
gazebo
2018-06-20 15:04:00 +08:00
parent 363f01857e
commit 55df9f7a2f
2 changed files with 22 additions and 0 deletions

13
baseapi.go Normal file
View File

@@ -0,0 +1,13 @@
package baseapi
import (
"go.uber.org/zap"
)
var (
SugarLogger *zap.SugaredLogger
)
func Init(sugarLogger *zap.SugaredLogger) {
SugarLogger = sugarLogger
}