mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
27 lines
616 B
Go
27 lines
616 B
Go
package log
|
|
|
|
import (
|
|
"github.com/bettercap/bettercap/v2/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...)
|
|
}
|