Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ main
Function
main
05.32-stdFmtCustomLogger4/main.cpp:73–83 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
71
}
72
73
int main()
74
{
75
int x{4};
76
std::string share{
"Amazon"
s};
77
double d{3'117.02};
78
79
log(LogLevel::Info,
"Share price"
sv, share,
"very high:"
sv, d);
80
81
errno = 4;
82
log(LogLevel::Error,
"Unknown stock, errno"
sv, errno);
83
}
Callers
nothing calls this directly
Calls
1
log
Function · 0.70
Tested by
no test coverage detected