code: func InitZapLogger(cfg *LogConfig) error {
  	gl, props, err := zaplog.InitLogger(&cfg.Config)
  	if err != nil {
  		return errors.Trace(err)
  	}
  	zaplog.ReplaceGlobals(gl, props)
  
  	if len(cfg.SlowQueryFile) != 0 {
  		sqfCfg := zaplog.FileLogConfig{
  			LogRotate: cfg.File.LogRotate,
  			MaxSize:   cfg.File.MaxSize,
  			Filename:  cfg.SlowQueryFile,
  		}
  		sqCfg := &zaplog.Config{
  			Level:            cfg.Level,
  			Format:           cfg.Format,
  			DisableTimestamp: cfg.DisableTimestamp,
  			File:             sqfCfg,
  		}
  		sqLogger, _, err := zaplog.InitLogger(sqCfg)
  		if err != nil {
  			return errors.Trace(err)
  		}
  		SlowQueryZapLogger = sqLogger
  	} else {
  		SlowQueryZapLogger = gl
  	}
  
  	return nil
  }
docs: // InitZapLogger initializes a zap logger with cfg.