高热共公日志库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
643 B

  1. package grlogs
  2. type Level int
  3. type Adapter string
  4. type AdapterTupple struct {
  5. Level Level
  6. Adapter Adapter
  7. }
  8. const (
  9. _ Level = iota
  10. LevelNone Level = iota
  11. LevelCritical Level = iota
  12. LevelError Level = iota
  13. LevelWarning Level = iota
  14. LevelWarn Level = iota
  15. LevelInfo Level = iota
  16. LevelDebug Level = iota
  17. LevelAll Level = iota
  18. )
  19. const (
  20. AdapterFile Adapter = "file"
  21. AdapterConsole Adapter = "console"
  22. AdapterSocket Adapter = "socket"
  23. AdapterElasticSearch Adapter = "es"
  24. AdapterAliLs Adapter = "alils"
  25. )
  26. const (
  27. DEV = "dev"
  28. GRAY = "gray"
  29. PROD = "prod"
  30. )