Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
void 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
43
int main()
44
{
Callers
1
main
Function · 0.70
Calls
1
format
Function · 0.50
Tested by
no test coverage detected