mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
refact: refactored core constants into swag.go
This commit is contained in:
parent
7b42da1bf3
commit
2cda9c8c67
5 changed files with 49 additions and 61 deletions
11
log/log.go
11
log/log.go
|
@ -1,25 +1,26 @@
|
|||
package log
|
||||
|
||||
import (
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
"github.com/evilsocket/bettercap-ng/session"
|
||||
)
|
||||
|
||||
func Debug(format string, args ...interface{}) {
|
||||
session.I.Events.Log(session.DEBUG, format, args...)
|
||||
session.I.Events.Log(core.DEBUG, format, args...)
|
||||
}
|
||||
|
||||
func Info(format string, args ...interface{}) {
|
||||
session.I.Events.Log(session.INFO, format, args...)
|
||||
session.I.Events.Log(core.INFO, format, args...)
|
||||
}
|
||||
|
||||
func Warning(format string, args ...interface{}) {
|
||||
session.I.Events.Log(session.WARNING, format, args...)
|
||||
session.I.Events.Log(core.WARNING, format, args...)
|
||||
}
|
||||
|
||||
func Error(format string, args ...interface{}) {
|
||||
session.I.Events.Log(session.ERROR, format, args...)
|
||||
session.I.Events.Log(core.ERROR, format, args...)
|
||||
}
|
||||
|
||||
func Fatal(format string, args ...interface{}) {
|
||||
session.I.Events.Log(session.FATAL, format, args...)
|
||||
session.I.Events.Log(core.FATAL, format, args...)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue