You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
252 B

10 years ago
  1. package mempool
  2. import (
  3. "github.com/op/go-logging"
  4. )
  5. var log = logging.MustGetLogger("mempool")
  6. func init() {
  7. logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
  8. }
  9. func SetMempoolLogger(l *logging.Logger) {
  10. log = l
  11. }