enums.go 301 B

123456789101112131415161718
  1. package fslog
  2. import (
  3. "go.uber.org/zap/zapcore"
  4. )
  5. type Level zapcore.Level
  6. const (
  7. DebugLv = Level(zapcore.DebugLevel)
  8. InfoLv = Level(zapcore.InfoLevel)
  9. WarnLv = Level(zapcore.WarnLevel)
  10. ErrorLv = Level(zapcore.ErrorLevel)
  11. )
  12. func (l Level) zap() zapcore.Level {
  13. return zapcore.Level(l)
  14. }