Struct tcp_sink_config

Synopsis

#include <include/spdlog/sinks/tcp_sink.h>

struct tcp_sink_config

Description

No description yet.

Methods

tcp_sink_config

Source

Lines 30-40 in include/spdlog/sinks/tcp_sink.h.

struct tcp_sink_config
{
    std::string server_host;
    int server_port;
    bool lazy_connect = false; // if true connect on first log call instead of on construction

    tcp_sink_config(std::string host, int port)
        : server_host{std::move(host)}
        , server_port{port}
    {}
};





Add Discussion

Log in to comment