MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / getLogText

Method getLogText

App/Loader.cpp:146–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146QString
147Loader::getLogText(void)
148{
149 QString text = "";
150 std::lock_guard<Suscan::Logger> guard(*Suscan::Logger::getInstance());
151
152 for (const auto &p : *Suscan::Logger::getInstance()) {
153 switch (p.severity) {
154 case SU_LOG_SEVERITY_CRITICAL:
155 text += "critical: ";
156 break;
157
158 case SU_LOG_SEVERITY_DEBUG:
159 text += "debug: ";
160 break;
161
162 case SU_LOG_SEVERITY_ERROR:
163 text += "error: ";
164 break;
165
166 case SU_LOG_SEVERITY_INFO:
167 text += "info: ";
168 break;
169
170 case SU_LOG_SEVERITY_WARNING:
171 text += "warning: ";
172 break;
173 }
174
175 text += p.message.c_str();
176 }
177
178 return text;
179}
180
181Loader::~Loader()
182{

Callers 1

handleFailureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected