code: func logdogLink(log buildbucketpb.Step_Log, raw bool) template.HTML {
  	rawURL := "#invalid-logdog-link"
  	if sa, err := types.ParseURL(log.Url); err == nil {
  		u := url.URL{
  			Scheme: "https",
  			Host:   sa.Host,
  			Path:   fmt.Sprintf("/logs/%s/%s", sa.Project, sa.Path),
  		}
  		if raw {
  			u.RawQuery = "format=raw"
  		}
  		rawURL = u.String()
  	}
  	name := log.Name
  	if raw {
  		name = "raw"
  	}
  	return ui.NewLink(name, rawURL, fmt.Sprintf("raw log %s", log.Name)).HTML()
  }
docs: // logdogLink generates a link with URL pointing to logdog host and a label
  // corresponding to the log name. In case `raw` is true, the link points to the
  // raw version of the log (without UI) and the label becomes "raw".