mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
25 lines
602 B
Go
25 lines
602 B
Go
package log
|
|
|
|
import (
|
|
"github.com/evilsocket/bettercap-ng/session"
|
|
)
|
|
|
|
func Debug(format string, args ...interface{}) {
|
|
session.I.Events.Log(session.DEBUG, format, args...)
|
|
}
|
|
|
|
func Info(format string, args ...interface{}) {
|
|
session.I.Events.Log(session.INFO, format, args...)
|
|
}
|
|
|
|
func Warning(format string, args ...interface{}) {
|
|
session.I.Events.Log(session.WARNING, format, args...)
|
|
}
|
|
|
|
func Error(format string, args ...interface{}) {
|
|
session.I.Events.Log(session.ERROR, format, args...)
|
|
}
|
|
|
|
func Fatal(format string, args ...interface{}) {
|
|
session.I.Events.Log(session.FATAL, format, args...)
|
|
}
|