mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-11-02 12:54:03 +08:00
Update log.go
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user