高热共公日志库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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