func (w *UDPWriter) WriteMessage(sm *SimpleMessage) error {

	cleanExtra, err := prepareExtra(sm.Extra)
	if err != nil {
		return err
	}

	sm.Extra = cleanExtra

	return w.WriteCustomMessage(constructMessage(sm))
}
// WriteMessage allow to send messsage to gelf Server
// It only request basic fields and will handle conversion & co
WriteMessage allow to send messsage to gelf Server
It only request basic fields and will handle conversion & co
// WriteMessage allow to send messsage to gelf Server // It only request basic fields and will handle conversion & co
func (w *UDPWriter) WriteMessage(sm *SimpleMessage) error {
	cleanExtra, err := prepareExtra(sm.Extra)
	if err != nil {
		return err
	}
	sm.Extra = cleanExtra
	return w.WriteCustomMessage(constructMessage(sm))
}
func ( w * UDPWriter ) WriteMessage ( sm * SimpleMessage ) error { cleanExtra , err := prepareExtra ( sm . Extra ) if err != nil { return err } sm . Extra = cleanExtra return w . WriteCustomMessage ( constructMessage ( sm ) ) }
WriteMessage allow to send messsage to gelf Server
It only request basic fields and will handle conversion & co
WriteMessage allow to send messsage to gelf Server It only request basic fields and will handle conversion & co