func LogResult(response voucher.Response) {
	for _, result := range response.Results {
		log.WithFields(log.Fields{
			"check":    result.Name,
			"image":    response.Image,
			"passed":   result.Success,
			"attested": result.Attested,
			"error":    result.Err,
		}).Info("Check Result")
	}
}
LogResult logs each test run as Info
package server
import (
	"net/http"
	log "github.com/sirupsen/logrus"
	voucher "github.com/grafeas/voucher/v2"
)
func init() {
	log.SetFormatter(&log.JSONFormatter{})
}
func LogRequests(r *http.Request) {
	err := r.ParseForm()
	if err != nil {
		log.WithError(err).Info("received request with malformed form")
		return
	}
	log.WithFields(log.Fields{
		"url":  r.URL,
		"path": r.URL.Path,
		"form": r.Form,
	}).Info("received request")
}