logger.go 223 B

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