github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/common/transport/init.go (about)

     1  package transport
     2  
     3  import (
     4  	"github.com/lesismal/nbio/logging"
     5  	"github.com/nyan233/littlerpc/core/common/logger"
     6  )
     7  
     8  type nbioLogger struct {
     9  	logger.LLogger
    10  }
    11  
    12  func (n nbioLogger) SetLevel(lvl int) {
    13  	return
    14  }
    15  
    16  func init() {
    17  	logging.DefaultLogger = nbioLogger{
    18  		LLogger: logger.DefaultLogger,
    19  	}
    20  }