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);