MCPcopy Create free account
hub / github.com/MEONMedical/Log4Qt / main

Function main

examples/basic/main.cpp:27–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static void shutDownRootLogger(const QString &extroMessage);
26
27int main(int argc, char *argv[])
28{
29 QCoreApplication application(argc, argv);
30
31 auto *object = new LoggerObject(&application);
32 auto *object1 = new LoggerObjectPrio(&application);
33 Q_UNUSED(object1)
34 QLoggingCategory::setFilterRules("*.debug=false\n"
35 "test.category1.debug=true");
36
37 QObject::connect(object, &LoggerObject::exit, &application, &QCoreApplication::exit);
38
39 initializeRootLogger();
40 logStartup();
41
42 int ret;
43 {
44 QScopedPointer<LoggerStatic> object2(new LoggerStatic());
45
46 ret = QCoreApplication::exec();
47 }
48
49 logShutdown();
50 shutdownRootLogger();
51
52 return ret;
53}
54
55void initializeRootLogger()
56{

Callers

nothing calls this directly

Calls 4

initializeRootLoggerFunction · 0.70
logStartupFunction · 0.70
logShutdownFunction · 0.70
shutdownRootLoggerFunction · 0.70

Tested by

no test coverage detected