logger.go 251 B

123456789101112131415
  1. // Copyright 2019 getensh.cc. All rights reserved.
  2. // Use of this source code is governed by getensh.cc.
  3. // package internal function
  4. package utils
  5. import (
  6. "go.uber.org/zap"
  7. )
  8. var l *zap.Logger
  9. func SetLogger(logger *zap.Logger) {
  10. l = logger
  11. }