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

Function log

05.25-stdFmtCustomLogger0/main.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34void log(LogLevel level,
35 std::string_view fmt,
36 const auto&... args)
37{
38 std::clog << std::format("{}: "sv, level)
39 << std::vformat(fmt, std::make_format_args(args...))
40 << '\n';
41}
42
43int main()
44{

Callers 1

mainFunction · 0.70

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected