MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / vlog

Function vlog

05.32-stdFmtCustomLogger4/main.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void vlog(std::string_view fmt, std::format_args&& args)
58{
59 const auto t = GetTime();
60 std::clog << std::format("[{:%Y-%m-%d-%H:%M:%S}] "sv, t)
61 << std::vformat(fmt, args);
62}
63
64constexpr void log(LogLevel level, const auto&... args)
65{

Callers 1

logFunction · 0.70

Calls 2

GetTimeFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected