11 #include <framework/logging/LogConnectionUDP.h>
12 #include <framework/logging/LogMessage.h>
14 using namespace boost::asio;
15 using boost::asio::ip::udp;
19 LogConnectionUDP::LogConnectionUDP(
const std::string& hostname,
unsigned short port) : m_socket(m_ioservice)
22 ip::udp::resolver::query query(udp::v4(), hostname, std::to_string(port));
36 const std::string& jsonMessage = message.toJSON(
true);
38 boost::system::error_code err;
40 const bool sent = err.value() != 0;