|
|
@ -39,7 +39,6 @@ class udp_sink : public spdlog::sinks::base_sink<Mutex>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
// host can be hostname or ip address
|
|
|
|
// host can be hostname or ip address
|
|
|
|
|
|
|
|
|
|
|
|
explicit udp_sink(udp_sink_config sink_config)
|
|
|
|
explicit udp_sink(udp_sink_config sink_config)
|
|
|
|
: client_{sink_config.server_host, sink_config.server_port}
|
|
|
|
: client_{sink_config.server_host, sink_config.server_port}
|
|
|
|
{}
|
|
|
|
{}
|
|
|
@ -72,4 +71,4 @@ inline std::shared_ptr<logger> udp_logger_mt(const std::string &logger_name, sin
|
|
|
|
return Factory::template create<sinks::udp_sink_mt>(logger_name, skin_config);
|
|
|
|
return Factory::template create<sinks::udp_sink_mt>(logger_name, skin_config);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace spdlog
|
|
|
|
} // namespace spdlog
|
|
|
|