code: func UseLogger(logger btclog.Logger) {
  	log = logger
  	blockchain.UseLogger(logger)
  	txscript.UseLogger(logger)
  	peer.UseLogger(logger)
  	addrmgr.UseLogger(logger)
  	blockntfns.UseLogger(logger)
  	pushtx.UseLogger(logger)
  }
docs: // UseLogger uses a specified Logger to output package logging info.
  // This should be used in preference to SetLogWriter if the caller is also
  // using btclog.