Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Glog *zap.Logger
View Source
var Mysql *gorm.DB
View Source
var Object *obj
Object 定义一个全局的对象
View Source
var Redis *redis.Client
Functions ¶
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
CustomTimeEncoder 自定义日志输出时间格式
func GetWriteSyncer ¶
func GetWriteSyncer() (zapcore.WriteSyncer, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.