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

Function main

05.27-stdFmtCustomLogger1/main.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int main()
48{
49 const std::string share{"Amazon"};
50 const double price{3'117.02};
51
52 log(LogLevel::Info,
53 "Share price {} very high: {}",
54 share,
55 price);
56
57 errno = 4;
58 log(LogLevel::Error, "Unknown stock, errno: {}", errno);
59}
60
61#else
62

Callers

nothing calls this directly

Calls 1

logFunction · 0.70

Tested by

no test coverage detected