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
248 B

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