code: func ParseLogTag(info logger.Info, defaultTemplate string) (string, error) {
  	tagTemplate := info.Config["tag"]
  	if tagTemplate == "" {
  		tagTemplate = defaultTemplate
  	}
  
  	tmpl, err := templates.NewParse("log-tag", tagTemplate)
  	if err != nil {
  		return "", err
  	}
  	buf := new(bytes.Buffer)
  	if err := tmpl.Execute(buf, &info); err != nil {
  		return "", err
  	}
  
  	return buf.String(), nil
  }
docs: // ParseLogTag generates a context aware tag for consistency across different
  // log drivers based on the context of the running container.