mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Update tcp_sink.h
This commit is contained in:
parent
7b19890deb
commit
1b6d4fd277
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user