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