MCPcopy Create free account
hub / github.com/Shangyizhou/A-Tiny-Network-Library / setLogging

Function setLogging

example/echoServerAsync.cc:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void setLogging(const char* argv0)
68{
69 Logger::setOutput(asyncOutput);
70 char name[256];
71 strncpy(name, argv0, 256);
72 g_asyncLog.reset(new AsyncLogging(::basename(name), kRollSize));
73 g_asyncLog->start();
74}
75
76
77int main(int argc, char* argv[])

Callers 1

mainFunction · 0.85

Calls 2

resetMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected