package p2p import ( "github.com/cihub/seelog" ) var log seelog.LoggerInterface func init() { config := ` ` var err error log, err = seelog.LoggerFromConfigAsBytes([]byte(config)) if err != nil { panic(err) } } func SetLogger(l seelog.LoggerInterface) { log = l }