MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / writeToLogFile_

Method writeToLogFile_

src/openms_gui/source/VISUAL/TOPPASScene.cpp:1321–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319 }
1320
1321 void TOPPASScene::writeToLogFile_(const QString& text)
1322 {
1323 QFile logfile(out_dir_ + QDir::separator() + "TOPPAS.log");
1324 if (!logfile.open(QIODevice::Append | QIODevice::Text))
1325 {
1326 std::cerr << "Could not write to logfile '" << String(logfile.fileName()) << "'" << std::endl;
1327 return;
1328 }
1329
1330 QTextStream ts(&logfile);
1331 ts << "\n" << text << "\n";
1332 logfile.close();
1333 }
1334
1335 void TOPPASScene::logTOPPOutput(const QString& out)
1336 {

Callers

nothing calls this directly

Calls 3

StringClass · 0.50
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected