MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / main

Function main

runtime/testHelper/client.cc:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18using namespace NanoLog::LogLevels;
19int main() {
20 NANO_LOG(NOTICE, "Simple log message with 0 parameters");
21 NANO_LOG(NOTICE, "This is a string %s", "aaa");
22
23 NANO_LOG(DEBUG, "Debug level");
24 NANO_LOG(NOTICE, "Notice Level");
25 NANO_LOG(WARNING, "Warning Level");
26 NANO_LOG(ERROR, "Error Level");
27
28 NANO_LOG(NOTICE, "I have an integer %d", 2);
29 NANO_LOG(NOTICE, "I have a uint64_t %lu", 2);
30 NANO_LOG(NOTICE, "I have a double %lf", 2.0);
31 NANO_LOG(NOTICE, "I have a couple of things %d, %f, %u, %s",
32 1, 2.0, 3, "s4");
33 return 0;
34}

Callers

nothing calls this directly

Calls 1

NANO_LOGClass · 0.85

Tested by

no test coverage detected