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

Function vlog

05.29-stdFmtCustomLogger2/main.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void vlog(LogLevel level,
63 std::string_view fmt,
64 std::format_args&& args)
65{
66 std::clog << std::format("{}: ", level)
67 << std::vformat(fmt, args);
68}
69
70constexpr void log(LogLevel level, const auto&... args)
71{

Callers 1

logFunction · 0.70

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected