p2p README update

This commit is contained in:
Jae Kwon
2014-09-11 11:17:59 -07:00
parent 8b606f9e66
commit 6a84b2e6aa
5 changed files with 151 additions and 5 deletions

15
mempool/log.go Normal file
View File

@ -0,0 +1,15 @@
package mempool
import (
"github.com/op/go-logging"
)
var log = logging.MustGetLogger("mempool")
func init() {
logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
}
func SetMempoolLogger(l *logging.Logger) {
log = l
}