高热共公日志库
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.

32 lines
580 B

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