Update tcp_sink.h

This commit is contained in:
gabime 2020-02-10 17:19:22 +02:00
parent 7b19890deb
commit 1b6d4fd277

View File

@ -24,6 +24,8 @@ template<typename Mutex>
class tcp_sink : public spdlog::sinks::base_sink<Mutex> class tcp_sink : public spdlog::sinks::base_sink<Mutex>
{ {
public: public:
// connect to tcp host/port or throw if failed
// host can be hostname or ip address
tcp_sink(std::string host, int port) tcp_sink(std::string host, int port)
{ {
sock_ = connect_to(host, port); sock_ = connect_to(host, port);