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

Function log

05.29-stdFmtCustomLogger2/main.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70constexpr void log(LogLevel level, const auto&... args)
71{
72 // #A Make the format string
73 constexpr auto braces = makeBraces<sizeof...(args)>();
74
75 vlog(level,
76 std::string_view{braces.data()},
77 std::make_format_args(args...));
78}
79
80int main()
81{

Callers 1

mainFunction · 0.70

Calls 2

dataMethod · 0.80
vlogFunction · 0.70

Tested by

no test coverage detected