logger.go 220 B

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