id summary reporter owner description type status milestone component version severity resolution keywords cc 12364 In boost::log, how to re-connect to a remote server (like logstash)? xinyan.zhang@… Andrey Semashev "By using boost::asio::ip::tcp::iostream and boost::log, I am trying to send log records to a remote server like logstash. But I need to handle the network disconnection/reconnection. Unfortunately, I did not find any way for tcp::iostream. Is it possible to get a notification or exception when the tcp connection is broken? Can I use ip::tcp::socket instead of tcp::iostream in boost::log? Thank you. My code looks like: {{{ typedef boost::log::sinks::asynchronous_sink< boost::log::sinks::text_ostream_backend > tcp_sink; boost::shared_ptr< tcp_sink > networkSink; // init tcp stream boost::shared_ptr< sinks::text_ostream_backend > backend = boost::make_shared< sinks::text_ostream_backend >(); boost::shared_ptr< boost::asio::ip::tcp::iostream > stream = boost::make_shared< boost::asio::ip::tcp::iostream >(); stream->connect(""logstash"", ""1111""); backend->add_stream(stream); networkSink = boost::make_shared< tcp_sink >(); networkSink->set_formatter(fmt); networkSink->set_filter(severity <= severityThreshold); networkSink = boost::make_shared(backend ); logging::core::get()->add_sink(networkSink); }}} " Support Requests closed To Be Determined log Boost 1.61.0 Problem invalid