update udp example

This commit is contained in:
gabime 2021-09-05 11:35:00 +03:00
parent 5906ce844a
commit 1ec50cdcfc

View File

@ -201,7 +201,6 @@ void trace_example()
// stopwatch example // stopwatch example
#include "spdlog/stopwatch.h" #include "spdlog/stopwatch.h"
#include <thread> #include <thread>
#include "spdlog/sinks/udp_sink.h"
void stopwatch_example() void stopwatch_example()
{ {
spdlog::stopwatch sw; spdlog::stopwatch sw;
@ -209,6 +208,7 @@ void stopwatch_example()
spdlog::info("Stopwatch: {} seconds", sw); spdlog::info("Stopwatch: {} seconds", sw);
} }
#include "spdlog/sinks/udp_sink.h"
void udp_example() void udp_example()
{ {
spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091); spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091);