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

Function log

05.32-stdFmtCustomLogger4/main.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64constexpr void log(LogLevel level, const auto&... args)
65{
66 ///\lc{}{Make the format string}/
67 constexpr auto braces = makeBraces<sizeof...(args)>();
68
69 vlog(std::string_view{braces.data()},
70 std::make_format_args(level, args...));
71}
72
73int main()
74{

Callers 1

mainFunction · 0.70

Calls 2

dataMethod · 0.80
vlogFunction · 0.70

Tested by

no test coverage detected