github.com/metacubex/sing-tun@v0.2.7-0.20240512075008-89e7c6208eec/stack_gvisor_log.go (about) 1 //go:build with_gvisor 2 3 package tun 4 5 import ( 6 "time" 7 8 gLog "github.com/metacubex/gvisor/pkg/log" 9 ) 10 11 func init() { 12 gLog.SetTarget((*nopEmitter)(nil)) 13 } 14 15 type nopEmitter struct{} 16 17 func (n *nopEmitter) Emit(depth int, level gLog.Level, timestamp time.Time, format string, v ...interface{}) { 18 }