func MessageToString(Message interface{}) string {
    switch Text := Message.(type) {
    case []byte:
        return string(Text)
    case string:
        return Text
    case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
        return fmt.Sprintf("%d", Text)
    case float32, float64:
        return fmt.Sprintf("%f", Text)
    default:
        JSONMessage, err := json.Marshal(Text)
        if err != nil {
            return ""
        }
        return string(JSONMessage)
    }
}
// MessageToString convert log content to simple string
MessageToString convert log content to simple string
// MessageToString convert log content to simple string
func MessageToString(Message interface{}) string {
    switch Text := Message.(type) {
    case []byte:
        return string(Text)
    case string:
        return Text
    case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
        return fmt.Sprintf("%d", Text)
    case float32, float64:
        return fmt.Sprintf("%f", Text)
    default:
        JSONMessage, err := json.Marshal(Text)
        if err != nil {
            return ""
        }
        return string(JSONMessage)
    }
}
func MessageToString ( Message interface { } ) string { switch Text := Message . ( type ) { case [ ] byte : return string ( Text ) case string : return Text case int , int8 , int16 , int32 , int64 , uint , uint8 , uint16 , uint32 , uint64 : return fmt . Sprintf ( " " , Text ) case float32 , float64 : return fmt . Sprintf ( " " , Text ) default : JSONMessage , err := json . Marshal ( Text ) if err != nil { return " " } return string ( JSONMessage ) } }
MessageToString convert log content to simple string
MessageToString convert log content to simple string