mirror of
https://github.com/gabime/spdlog.git
synced 2025-11-16 09:28:56 +08:00
clang-format
This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
SOCKET fd() const { return socket_; }
|
SOCKET fd() const { return socket_; }
|
||||||
|
|
||||||
int connect_socket_with_timeout(SOCKET sockfd,
|
int connect_socket_with_timeout(SOCKET sockfd,
|
||||||
const struct sockaddr *addr,
|
const struct sockaddr *addr,
|
||||||
int addrlen,
|
int addrlen,
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ namespace sinks {
|
|||||||
struct tcp_sink_config {
|
struct tcp_sink_config {
|
||||||
std::string server_host;
|
std::string server_host;
|
||||||
int server_port;
|
int server_port;
|
||||||
int timeout_ms = 0; // The timeout for all 3 major socket operations that is connect, send, and recv
|
int timeout_ms =
|
||||||
|
0; // The timeout for all 3 major socket operations that is connect, send, and recv
|
||||||
bool lazy_connect = false; // if true connect on first log call instead of on construction
|
bool lazy_connect = false; // if true connect on first log call instead of on construction
|
||||||
|
|
||||||
tcp_sink_config(std::string host, int port)
|
tcp_sink_config(std::string host, int port)
|
||||||
|
|||||||
@@ -50,4 +50,3 @@ TEST_CASE("ringbuffer retrieval limit", "[ringbuffer]") {
|
|||||||
REQUIRE(formatted[0] == spdlog::fmt_lib::format("B{}", default_eol));
|
REQUIRE(formatted[0] == spdlog::fmt_lib::format("B{}", default_eol));
|
||||||
REQUIRE(formatted[1] == spdlog::fmt_lib::format("C{}", default_eol));
|
REQUIRE(formatted[1] == spdlog::fmt_lib::format("C{}", default_eol));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user