github.com/sagernet/sing-tun@v0.3.0-beta.5/stack_gvisor_log.go (about) 1 //go:build with_gvisor 2 3 package tun 4 5 import ( 6 "time" 7 8 gLog "github.com/sagernet/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 }