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

Function main

05.25-stdFmtCustomLogger0/main.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43int main()
44{
45 int x{4};
46 std::string share{"Amazon"};
47 double d{3'117.02};
48
49 log(LogLevel::Info, "Share price {} very high: {}", share, d);
50
51 errno = 4;
52 log(LogLevel::Error, "Unknown stock, errno {}", errno);
53}

Callers

nothing calls this directly

Calls 1

logFunction · 0.70

Tested by

no test coverage detected