code: func (r *responseStats) log() {
  	var avg time.Duration
  	if r.count != 0 {
  		avg = r.sumDuration / time.Duration(r.count)
  	} else {
  		avg = 0
  	}
  	logrus.WithFields(logrus.Fields{
  		"count":            r.count,
  		"lifetime_count":   r.totalCount + r.count,
  		"slowest":          r.maxDuration,
  		"fastest":          r.minDuration,
  		"avg_duration":     avg,
  		"count_per_status": r.statusCodes,
  		"response_bodies":  r.bodies,
  		"errors":           r.errors,
  	}).Info("Summary of sent events")
  	if r.event != nil {
  		fields := make(map[string]interface{})
  		fields["event"] = r.event.Data
  		fields["event_timestamp"] = r.event.Timestamp
  		logrus.WithFields(fields).Info("Last parsed event")
  	}
  }
docs: // log the current statistics to logrus.
  // NOT thread safe.