mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
update udp example
This commit is contained in:
parent
5906ce844a
commit
1ec50cdcfc
@ -201,7 +201,6 @@ void trace_example()
|
||||
// stopwatch example
|
||||
#include "spdlog/stopwatch.h"
|
||||
#include <thread>
|
||||
#include "spdlog/sinks/udp_sink.h"
|
||||
void stopwatch_example()
|
||||
{
|
||||
spdlog::stopwatch sw;
|
||||
@ -209,6 +208,7 @@ void stopwatch_example()
|
||||
spdlog::info("Stopwatch: {} seconds", sw);
|
||||
}
|
||||
|
||||
#include "spdlog/sinks/udp_sink.h"
|
||||
void udp_example()
|
||||
{
|
||||
spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091);
|
||||
|
Loading…
Reference in New Issue
Block a user