code: func (af azureFormatter) Format(event *contract.Event) []byte {
  	am, err := newAzureMessage()
  	if err != nil {
  		LoggingClient.Error(fmt.Sprintf("Error creating a new Azure message: %s", err))
  		return []byte{}
  	}
  	am.ConnDevID = event.Device
  	am.UserID = string(event.Origin)
  	data, err := json.Marshal(event)
  	if err != nil {
  		LoggingClient.Error(fmt.Sprintf("Error parsing Event data: %s", err))
  		return []byte{}
  	}
  	am.Body = data
  	msg, err := json.Marshal(am)
  	if err != nil {
  		LoggingClient.Error(fmt.Sprintf("Error parsing AzureMessage data: %s", err))
  		return []byte{}
  	}
  	return msg
  }
docs: // Format method does all foramtting job.