Update log.go

This commit is contained in:
Jason
2019-08-14 23:24:55 +08:00
parent c3ac247d2a
commit a986e7984f

View File

@@ -49,6 +49,10 @@ func Fatalf(format string, v ...interface{}) {
log.Fatalf(format, v...)
}
func Access(process, outbound, network, local, target string) {
Infof("[%v] [%v] [%v] %s --> %s", outbound, network, process, local, target)
}
func SetLevel(newLevel Level) {
level = newLevel
}