mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update tcp_sink.h
This commit is contained in:
parent
2b0481deed
commit
0123d41647
@ -31,12 +31,11 @@ struct tcp_sink_config
|
||||
{
|
||||
std::string server_host;
|
||||
int server_port;
|
||||
bool lazy_connect; // connect on first log call instead of in construction
|
||||
bool lazy_connect = false; // connect on first log call instead of on construction
|
||||
|
||||
tcp_sink_config(std::string host, int port, bool lazy_connect)
|
||||
tcp_sink_config(std::string host, int port)
|
||||
: server_host{std::move(host)}
|
||||
, server_port{port}
|
||||
, lazy_connect{lazy_connect}
|
||||
{}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user