github.com/yaling888/clash@v1.53.0/log/log_nogvisor.go (about) 1 //go:build nogvisor 2 3 package log 4 5 import logger "github.com/phuslu/log" 6 7 func SetLevel(newLevel LogLevel) { 8 level = newLevel 9 (logger.DefaultLogger.Writer.(*multiWriter)).consoleLevel = logger.Level(newLevel) 10 11 if !jsonSource.HasSubscriber() && !textSource.HasSubscriber() { 12 logger.DefaultLogger.SetLevel(logger.Level(newLevel)) 13 } 14 }