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

Function main

05.29-stdFmtCustomLogger2/main.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int main()
81{
82 const std::string share{"Amazon"};
83 const double price{3'117.02};
84
85 log(
86 LogLevel::Info, "Share price", share, "very high:", price);
87
88 errno = 4;
89 log(LogLevel::Error, "Unknown stock, errno:", errno);
90}

Callers

nothing calls this directly

Calls 1

logFunction · 0.70

Tested by

no test coverage detected