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

Function vlog

05.27-stdFmtCustomLogger1/main.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33void vlog(LogLevel level,
34 std::string_view fmt,
35 std::format_args&& args)
36{
37 std::clog << std::format("{}: ", level)
38 << std::vformat(fmt, args) << '\n';
39}
40
41constexpr void
42log(LogLevel level, std::string_view fmt, const auto&... args)

Callers 1

logFunction · 0.70

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected