log.go 613 B

123456789101112131415161718192021222324252627
  1. package log
  2. import (
  3. "github.com/bettercap/bettercap/session"
  4. ll "github.com/evilsocket/islazy/log"
  5. )
  6. func Debug(format string, args ...interface{}) {
  7. session.I.Events.Log(ll.DEBUG, format, args...)
  8. }
  9. func Info(format string, args ...interface{}) {
  10. session.I.Events.Log(ll.INFO, format, args...)
  11. }
  12. func Warning(format string, args ...interface{}) {
  13. session.I.Events.Log(ll.WARNING, format, args...)
  14. }
  15. func Error(format string, args ...interface{}) {
  16. session.I.Events.Log(ll.ERROR, format, args...)
  17. }
  18. func Fatal(format string, args ...interface{}) {
  19. session.I.Events.Log(ll.FATAL, format, args...)
  20. }