高热共公日志库
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

37 linhas
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. )