log.go 905 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package echo
  2. import (
  3. "io"
  4. "github.com/labstack/gommon/log"
  5. )
  6. type (
  7. // Logger defines the logging interface.
  8. Logger interface {
  9. Output() io.Writer
  10. SetOutput(w io.Writer)
  11. Prefix() string
  12. SetPrefix(p string)
  13. Level() log.Lvl
  14. SetLevel(v log.Lvl)
  15. Print(i ...interface{})
  16. Printf(format string, args ...interface{})
  17. Printj(j log.JSON)
  18. Debug(i ...interface{})
  19. Debugf(format string, args ...interface{})
  20. Debugj(j log.JSON)
  21. Info(i ...interface{})
  22. Infof(format string, args ...interface{})
  23. Infoj(j log.JSON)
  24. Warn(i ...interface{})
  25. Warnf(format string, args ...interface{})
  26. Warnj(j log.JSON)
  27. Error(i ...interface{})
  28. Errorf(format string, args ...interface{})
  29. Errorj(j log.JSON)
  30. Fatal(i ...interface{})
  31. Fatalj(j log.JSON)
  32. Fatalf(format string, args ...interface{})
  33. Panic(i ...interface{})
  34. Panicj(j log.JSON)
  35. Panicf(format string, args ...interface{})
  36. }
  37. )