From 1b6d4fd277cae2b53dc85568449176e11c9c6334 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 10 Feb 2020 17:19:22 +0200 Subject: [PATCH] Update tcp_sink.h --- include/spdlog/sinks/tcp_sink.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spdlog/sinks/tcp_sink.h b/include/spdlog/sinks/tcp_sink.h index 99ea8413..958d8875 100644 --- a/include/spdlog/sinks/tcp_sink.h +++ b/include/spdlog/sinks/tcp_sink.h @@ -24,6 +24,8 @@ template class tcp_sink : public spdlog::sinks::base_sink { public: + // connect to tcp host/port or throw if failed + // host can be hostname or ip address tcp_sink(std::string host, int port) { sock_ = connect_to(host, port);